index 52a1e9213d77d85ee12d94f93410fd4f13fbe0af..6055678f343d8e55dafc2c24ff518c666d21863b 100644 (file)
var
Texture: GLuint;
fmt: GLenum;
- buf: PByte;
- f, c: Integer;
begin
tex.width := Width;
tex.height := Height;
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;
img: TImageData;
- x, y: Integer;
- clr: TColor32Rec;
begin
result := false;
pWidth := 0;
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;
imageSize: Integer;
img: TImageData;
x, y: Integer;