Search found 14 matches
- Thu Feb 12, 2009 4:27 pm
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
I just noticed something, you use glTexImage2D(GL_TEXTURE_2D, 0, 3, 64, 64, 0, GL_BGR, GL_UNSIGNED_BYTE, t0->pixels); Internal format 3 and external being GL_BGR. They have to be the same. When you changed it to GL_RGB it worked because 3 is mapped to GL_RGB internally. So assuming GL_BGR is actual...
- Thu Feb 12, 2009 3:45 pm
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
I've narrowed it down, it is infact glTexImage that is causing the issue. It only seems to want to work with GL_RGB, trying to use GL_BGR causes it to crash. Does glTexImage actually accept GL_BGR, i.e. what is the status reported from glGetError() before and after this call? I'll tell you after i ...
- Thu Feb 12, 2009 7:57 am
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
- Thu Feb 12, 2009 5:27 am
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
- Wed Feb 11, 2009 3:47 pm
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
- Sat Feb 07, 2009 5:11 am
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
- Thu Feb 05, 2009 12:01 pm
- Forum: PSP Development
- Topic: Loading textures causes crash.
- Replies: 11
- Views: 4687
Loading textures causes crash.
I can't figure out what's causing the crash when I call glEnable(GL_TEXTURE_2D). Is there something wrong with how I'm creating the textures? glBindTexture(GL_TEXTURE_2D, surfaceTex[0]); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)...
- Sun Feb 01, 2009 9:55 am
- Forum: PSP Development
- Topic: Can't use glGenBuffers (or any other VBO methods)
- Replies: 3
- Views: 2480
Thanks a bunch.GlennNZ wrote:Thanks to my programming colleague, I have a solution....is required before including the glext header.Code: Select all
#define GL_GLEXT_PROTOTYPES
If I'd looked more carefully at the glext.h file, there is the lineLesson learned (perhaps)Code: Select all
#ifdef GL_GLEXT_PROTOTYPES
- Sun Feb 01, 2009 7:17 am
- Forum: PSP Development
- Topic: Welcome to the PSP development forum!
- Replies: 14
- Views: 118676
- Sun Feb 01, 2009 5:38 am
- Forum: PSP Development
- Topic: Can't use glGenBuffers (or any other VBO methods)
- Replies: 3
- Views: 2480
Re: Can't use glGenBuffers (or any other VBO methods)
I'm trying to convert some of my vertex arrays to vertex buffer objects (using pspgl), but my compiler doesn't want to know. src/Model.cpp:863: error: ‘glGenBuffers’ was not declared in this scope src/Model.cpp:864: error: ‘glBindBuffer’ was not declared in this scope src/Model.cpp:865: error: ‘glB...
- Sun Feb 01, 2009 5:35 am
- Forum: PSP Development
- Topic: About RM/RMVB player on psp.NEED HELP!!!
- Replies: 26
- Views: 32521
- Sun Feb 01, 2009 5:30 am
- Forum: PSP Development
- Topic: Win32 native Toolchain for PSPSDK
- Replies: 261
- Views: 204914
Hi longloel, maybe you could explain how to setup code::blocks in a mini tutorial? I usually use Eclipse and visual studio but have no experience on Code::Blocks, is there any special trick to get it working or does it work out of the box? Well, I thought I had it working, but it wasn't producing t...
- Thu Jan 29, 2009 2:10 pm
- Forum: PSP Development
- Topic: Win32 native Toolchain for PSPSDK
- Replies: 261
- Views: 204914
Hi, I just got the SDK and have been playing around with it. I can get the examples to compile just fine with Make, but I'm still having problems integrating with code::blocks. Here are my settings. Compiler: -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/include -O2 -G0 -Wall -D_PSP_FW_VERSION=15...
- Thu Jan 29, 2009 5:12 am
- Forum: PSP Development
- Topic: Win32 native Toolchain for PSPSDK
- Replies: 261
- Views: 204914
Hi, I just got the SDK and have been playing around with it. I can get the examples to compile just fine with Make, but I'm still having problems integrating with code::blocks. Here are my settings. Compiler: -I. -IC:/pspsdk/psp/sdk/include -IC:/pspsdk/psp/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150...