hi there,

my problem is not a joke, i use the DGLOpenGL.pas for a short time
and when i try to load an texture with GLBMP i dont saw something :shock:

heres the simple code:

my texture
[pascal]
var texture: TGLBMP;
[/pascal]

this is in the Form1.create procedure
[pascal]
procedure Setup;
begin
t.texture:=TGLBMP.Create;
t.texture.LoadImage('tex.bmp');
t.texture.GenTexture(false,false);
end;
[/pascal]

and this is in the render procedure
[pascal]
t.texture.Bind;
glbegin(gl_quads);
glTexCoord2f(0.0, 0.0);
glvertex3f(-1,1,-2);
glTexCoord2f(1.0, 0.0);
glvertex3f(-1,0,-2);
glTexCoord2f(1.0, -1.0);
glvertex3f(0,0,-2);
glTexCoord2f(0.0, -1.0);
glvertex3f(0,1,-2);
glend;
[/pascal]

hm it can be a simple blackout but i dont find the problem?

Thanks