Search found 6 matches

by rocko384
Tue Mar 05, 2013 1:36 pm
Forum: Programming Discussion
Topic: [SOLVED]GL doesn't properly display the image.
Replies: 9
Views: 3085

Re: GL doesn't properly display the image.

Thanks for the help you guys! I ended up making the function to turn the Surface into a Texture decipher the color format for itself, and that fixed the issue! Here's the source of the Surface loading function and Texture producing function for future generations: void IDTexture::Load(IDStr fn) { ID...
by rocko384
Mon Mar 04, 2013 8:30 pm
Forum: Programming Discussion
Topic: [SOLVED]GL doesn't properly display the image.
Replies: 9
Views: 3085

Re: GL doesn't properly display the image.

Thanks for the reply YourNerdyJoe. Switching the GL parameter to GL_LINEAR didn't fix it though :( I had someone tell me that it was probably an issue with Alpha, but I'm not entirely sure, though I can see, based on the results, how GL would be having a problem handling it. I swear by Bjarne and De...
by rocko384
Mon Mar 04, 2013 5:21 pm
Forum: Programming Discussion
Topic: [SOLVED]GL doesn't properly display the image.
Replies: 9
Views: 3085

Re: GL doesn't properly display the image.

Image
The original sheet for anyone that needed to see it.
by rocko384
Mon Mar 04, 2013 5:15 pm
Forum: Programming Discussion
Topic: [SOLVED]GL doesn't properly display the image.
Replies: 9
Views: 3085

Re: GL doesn't properly display the image.

void IDTexture::Load(IDStr fn) { IDSurface* tmp = IMG_Load(fn.c_str()); IDSurface* op; IDSurface* ret; int nOfColors; GLenum format; if (!tmp) { std::cout << "IMG_Load Failed: " << SDL_GetError() << std::endl; IdenCode = ID_IMG_FAILURE; return; } if (tmp->format->BytesPerPixel == 3) { op ...
by rocko384
Mon Mar 04, 2013 5:12 pm
Forum: Programming Discussion
Topic: [SOLVED]GL doesn't properly display the image.
Replies: 9
Views: 3085

[SOLVED]GL doesn't properly display the image.

I've been working on an engine for a 2D RPG (like the originality?), and recently transitioned from using SDL for drawing to the framebuffer, to the almighty OpenGL. I've migrated pretty much everything over to GL, except images either wont load correctly, or aren't being displayed correctly. Here's...