DEADSOFTWARE

added common file with compiler flags; cosmetic fix in g_monsters.pas
[d2df-sdl.git] / src / engine / e_textures.pas
index 53ad6c64ee378ac6512170b2cb32243ec289b18c..ae5cea44fa511f3597b9cf9a44591d52a4cc1533 100644 (file)
@@ -13,7 +13,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *)
-{$MODE DELPHI}
+{$INCLUDE e_amodes.inc}
 unit e_textures;
 
 { This unit provides interface to load 24-bit and 32-bit uncompressed images
@@ -75,8 +75,8 @@ function CreateTexture (var tex: GLTexture; Width, Height, aFormat: Word; pData:
 var
   Texture: GLuint;
   fmt: GLenum;
-  buf: PByte;
-  f, c: Integer;
+  //buf: PByte;
+  //f, c: Integer;
 begin
   tex.width := Width;
   tex.height := Height;
@@ -215,12 +215,12 @@ end;
 
 function LoadTextureMem (pData: Pointer; dataSize: LongInt; var Texture: GLTexture; var pWidth, pHeight: Word; Fmt: PWord=nil): Boolean;
 var
-  image, ii: PByte;
-  width, height: Integer;
-  imageSize: Integer;
+  //image, ii: PByte;
+  //width, height: Integer;
+  //imageSize: Integer;
   img: TImageData;
-  x, y: Integer;
-  clr: TColor32Rec;
+  //x, y: Integer;
+  //clr: TColor32Rec;
 begin
   result := false;
   pWidth := 0;
@@ -244,7 +244,7 @@ end;
 function LoadTextureMemEx (pData: Pointer; dataSize: LongInt; var Texture: GLTexture; fX, fY, fWidth, fHeight: Word; Fmt: PWord=nil): Boolean;
 var
   image, ii: PByte;
-  width, height: Integer;
+  //width, height: Integer;
   imageSize: Integer;
   img: TImageData;
   x, y: Integer;