Ver código fonte

Fix function order in header.

Lasse Öörni 12 anos atrás
pai
commit
60b3046053
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Source/Engine/Resource/Image.h

+ 2 - 2
Source/Engine/Resource/Image.h

@@ -110,8 +110,6 @@ public:
     bool SaveTGA(const String& fileName);
     /// Save in JPG format with compression quality. Return true if successful.
     bool SaveJPG(const String& fileName, int quality);
-    /// Create SDL surface from the image, or null if failed. Specify rect to only return partial image. Only RGB images are supported. You must free the surface yourself.
-    SDL_Surface* GetSDLSurface(const IntRect& rect = IntRect::ZERO) const;
     
     /// Return width.
     int GetWidth() const { return width_; }
@@ -131,6 +129,8 @@ public:
     SharedPtr<Image> GetNextLevel() const;
     /// Return a compressed mip level.
     CompressedLevel GetCompressedLevel(unsigned index) const;
+    /// Return an SDL surface from the image, or null if failed. Only RGB images are supported. Specify rect to only return partial image. You must free the surface yourself.
+    SDL_Surface* GetSDLSurface(const IntRect& rect = IntRect::ZERO) const;
     
 private:
     /// Decode an image using stb_image.