1

Is there an equivalent ? Is it an iPhone limitation or an OpenGL version limitation ? I can't find the mipmap level feature anywhere.

genpfault
  • 51,148
  • 11
  • 85
  • 139
CodeFlakes
  • 3,671
  • 3
  • 25
  • 28

2 Answers2

1

ES 1.1 doesn't support it.

Though you might check if your implementation has EXT_texture_lod_bias.

genpfault
  • 51,148
  • 11
  • 85
  • 139
0
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR);
Goz
  • 61,365
  • 24
  • 124
  • 204
  • I tried that but my texture renders blank. I can't find what's wrong – CodeFlakes Feb 25 '11 at 18:21
  • @CodeFlakes: That IS how you set up mipmapping. If it renders blank then most likely you don't have any mipmaps in your texture? Do you generate them? Use glGenerateMipmapOES. – Goz Feb 25 '11 at 18:24
  • Actually what I want is not use mipmap but if I don't unless I select GL_NEAREST or GL_LINEAR my texture is white. Sorry if this is a silly remark. I'll check glGenerateMipmapOES. Thanks – CodeFlakes Feb 25 '11 at 18:27