OpenGL textures lazarus / 39-Graphics ---------------------------------------------------------------------- Imants · 2010-05-31 03:27 Is it posible to get my texture width and height after I buit it glBindTexture(GL_TEXTURE_2D, Texture); //using variable Texture .... gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, pData) //Get this width and height .... ---------------------------------------------------------------------- Leledumbo · 2010-05-31 04:11 AFAIK no, you have to maintain it yourself. ---------------------------------------------------------------------- Krom · 2010-06-14 05:10 There's such a function you can use glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, ¶m); Similar goes for height and other texture props - see Help on glGetTexLevelParameter