Support for Open GL Es 1.x or 2.x on Windows/CE or mobile
Support for Open GL Es 1.x or 2.x on Windows/CE or mobile
Hello everybody,
can somebody tell me if irrlicht is going to support
OpenGL ES 1.x/2.x on Windows/mobile/CE ?
I'm interrested to use irrlicht with vincent 3d.
Greetings,
menuthaur
can somebody tell me if irrlicht is going to support
OpenGL ES 1.x/2.x on Windows/mobile/CE ?
I'm interrested to use irrlicht with vincent 3d.
Greetings,
menuthaur
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
This should be already supported by our ogl-es drivers. These are currently only available in a separate SVN repository, but already quite complete and usable. You'd have to set up the compilation for your support library and maybe adapt the wince driver to support OpenGL-ES driver creation. If you find a working setup please post it here, so we can add that code to the engine as well.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Did you use the correct SVN repository? It's in branches/ogl-es
The visual studio projects should include the ogl-es drivers, as I am usually using them here with MSVC. Don't know about the Makefile, but at least ogl-es was also tested under Linux. The wince project might not include this at all, but as said you'd have to integrate it with the wince device anyway.
The visual studio projects should include the ogl-es drivers, as I am usually using them here with MSVC. Don't know about the Makefile, but at least ogl-es was also tested under Linux. The wince project might not include this at all, but as said you'd have to integrate it with the wince device anyway.
I'm now a step further. I integrated the ogles1 files for the mobile devices.
The ogles-driver is vincent 3d.
I used for the first tests "Hello world".
Without loading the bitmap "sydney.bmp" the application is running and you can see the animation.
With loading the bitmap, the ogles-driver is dumping an assert because the
textureformat is not known. The assert is coming in the
"function void Context :: UpdateMipmaps(void)"
The "outer->GetInternalFormat()" is returning the value which is
TextureFormat::TextureFormatRGBA8. And this constant is not handled
in the switch case construct, so i am getting an assert.
Have you and idea what can i do?
Greetings
The ogles-driver is vincent 3d.
I used for the first tests "Hello world".
Without loading the bitmap "sydney.bmp" the application is running and you can see the animation.
With loading the bitmap, the ogles-driver is dumping an assert because the
textureformat is not known. The assert is coming in the
"function void Context :: UpdateMipmaps(void)"
Code: Select all
void Context :: UpdateMipmaps(void) {
MultiTexture * multiTexture = GetCurrentTexture();
Texture * texture = multiTexture->GetTexture(0);
U32 logWidth = Log(texture->GetWidth());
U32 logHeight = Log(texture->GetHeight());
U32 logSquareBound = logWidth < logHeight ? logWidth : logHeight;
U32 level;
for (level = 1; level <= logSquareBound; ++level) {
Texture * outer = multiTexture->GetTexture(level - 1);
Texture * inner = multiTexture->GetTexture(level);
inner->Initialize(outer->GetWidth() / 2,
outer->GetHeight() / 2, outer->GetInternalFormat());
size_t x, y;
size_t width = inner->GetWidth();
size_t height = inner->GetHeight();
switch (outer->GetInternalFormat()) {
case RasterizerState::TextureFormatAlpha:
...
break;
case RasterizerState::TextureFormatLuminance:
...
break;
case RasterizerState::TextureFormatLuminanceAlpha:
...
break;
case RasterizerState::TextureFormatRGB565:
...
break;
case RasterizerState::TextureFormatRGBA5551:
...
break;
case RasterizerState::TextureFormatRGBA4444:
...
break;
default:
assert(0);
}
TextureFormat::TextureFormatRGBA8. And this constant is not handled
in the switch case construct, so i am getting an assert.
Have you and idea what can i do?
Greetings