I downloaded a copy of ogles-src-1.0.0, and made a project in Visual Studio 6.0. Now I've got a DLL. Put codes from test directory into a new test project. Everything is fine, I get the rotating and zooming in/out dodge car model. After comment and uncomment glEnable(GL_TEXTURE_2D), a runtime error happens. I trace the source and find it is in Rasterizer.cpp line 561:
return Color::From565(reinterpret_cast<const U16 *>(data)[texOffset]);
Here data is the texture buffer, which calculates by Rasterizer.cpp line 816:
const Texture * texture = m_RasterInfo.Textures[unit] + m_RasterInfo.MipmapLevel[unit];
is wrong. I'm confused why this happens. Can anybody help me? Thanks in advance.
Not sure. Texturing seems to be working fine for the supported configurations (eVC4, gp2x). Maybe a porting problem to VC6?
Maybe it's a porting problem. In readme file writes that ogles supports VS2003, Because I havn't VS2003, so I move it to VS6. Is there any possibility of load texture error? The dodge.bmp inserted as resource in project, be loaded by LoadBitmap, and copy to a 24bits bitmap. Or I'm lack of turn any setting on? In PaintProc, all settings are default, except enable GL_TEXTURE_2D.
I've put the VC6 porting project and test project on the web.
Here is the URL:
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.