X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_textures.pas;h=dd2a5355350a949c8844c00ae6dc102f09d89e86;hb=9b63e74cbbb33cef5b1219c0afa82e43cfc40eeb;hp=53ad6c64ee378ac6512170b2cb32243ec289b18c;hpb=8558702f560e3faf9be93f96dfffbf4b6ba34c90;p=d2df-sdl.git diff --git a/src/engine/e_textures.pas b/src/engine/e_textures.pas index 53ad6c6..dd2a535 100644 --- a/src/engine/e_textures.pas +++ b/src/engine/e_textures.pas @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . *) -{$MODE DELPHI} +{$INCLUDE ../shared/a_modes.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;