Search found 101 matches
- Fri Apr 08, 2011 12:48 am
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
Re: Opengl Alpha Test
I've added those lines, and tried your suggestions and it's still the same thing, nothing draws. Also, when I remove the line you said it ends up not loading the textures ( the quads show up as white with no texture ), so that doesn't fix the BGR problem. To be perfectly clear my issue is, that I wa...
- Thu Apr 07, 2011 11:03 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
Re: Opengl Alpha Test
I want alpha testing and not blending, not only that, but changing those lines to the ones you suggested make the sprites not appear, just like the alpha testing issue.
- Thu Apr 07, 2011 10:35 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
[SOLVED]Opengl Alpha Test
I can't get alpha testing to work on my sprites. They are either black where the transparency should be or the whole screen is the clear color. SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); SDL_Surface* screen = SDL_SetVideoMode( width, height, 32, SDL_OPENGL ); glEnable( GL_TEXTURE_2D ); glClearCo...
- Sun Mar 27, 2011 7:03 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1203
Re: Card game engine?
Like I said, I think I have the whole deck idea down, I just want to know some good ways to store the data of cards. The data would be static except for negative effects from gameplay, so I'm thinking of making some sort of static card list and copying the data out of it to the actual "cards&qu...
- Sun Mar 27, 2011 6:56 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1203
Re: Card game engine?
I know this. I said vector meaning deque.
- Sun Mar 27, 2011 6:48 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1203
Re: Card game engine?
I'm thinking of using vectors for the deck. I really just want a great way to store the raw card data. Like it's name and stats and what not.
- Sun Mar 27, 2011 6:07 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1203
Re: Card game engine?
Ah yes, it'd be C++ with SDL/GL. Forgot to mention that.
- Sun Mar 27, 2011 6:00 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1203
Card game engine?
What would be the best way to store a large amount of "cards" like magic the gathering cards or similar. Each card would have various stats and maybe an effect, and then be sortable into a deck which is randomized for battle. I was thinking of using a large amount of arrays, but there has ...
- Sun Feb 27, 2011 11:10 pm
- Forum: Programming Discussion
- Topic: [Solved] Need help with c++/sdl and drawing
- Replies: 25
- Views: 1922
Re: Need help with c++/sdl and drawing
I really have no clue why it wouldn't output blue, i'm assuming it was an error loading the image or something, but he say's it's solved so I guess he's good to go. Change the topic to [Solved] man!
- Sun Feb 27, 2011 1:44 pm
- Forum: Programming Discussion
- Topic: [Solved] Need help with c++/sdl and drawing
- Replies: 25
- Views: 1922
Re: Need help with c++/sdl and drawing
I don't use alpha in my engine, I just color mask (255,0,255), however, you have to make sure that it is exactly that color. Also, look up LazyFoo's tutorial on optimizing loaded images. void CResourceManager::LoadImage( std::string filename ) { //Surface for loading image SDL_Surface* load_image = ...
- Sat Feb 26, 2011 10:14 pm
- Forum: Programming Discussion
- Topic: [Solved] Need help with c++/sdl and drawing
- Replies: 25
- Views: 1922
Re: Need help with c++/sdl and drawing
Is your player capable of moving off of the background and into the black error?
- Sat Feb 26, 2011 9:19 pm
- Forum: Programming Discussion
- Topic: [Solved]Weird issue. Seriously need help.
- Replies: 12
- Views: 838
Re: [Solved]Weird issue. Seriously need help.
Thanks for clearing that up Falco, I didn't know much about it personally, but it would seem logical that if it helps, and doesn't hurt, why not use it?
- Sat Feb 26, 2011 4:23 pm
- Forum: Programming Discussion
- Topic: [Solved]Weird issue. Seriously need help.
- Replies: 12
- Views: 838
Re: Weird issue. Seriously need help.
The only thing I can really think of is a circular dependency, but, i'm currently not using the class I had an issue with anymore, and working on cleaning out my code. Thanks for the suggestion guys, but I guess you can consider it "solved", if I run into this problem again I'll post the c...
- Sat Feb 26, 2011 1:41 am
- Forum: Programming Discussion
- Topic: [Solved]Weird issue. Seriously need help.
- Replies: 12
- Views: 838
Re: Weird issue. Seriously need help.
See i'm actually very weary of my semi-colons following my class declarations because I had a huge bitchy error over it before that took forever to figure out haha. Also like I said it can't be the class itself because when it is included in some things it compiles and runs gravy. I'm not sure what ...
- Sat Feb 26, 2011 12:06 am
- Forum: Programming Discussion
- Topic: [Solved]Weird issue. Seriously need help.
- Replies: 12
- Views: 838
Re: Weird issue. Seriously need help.
Yes, I use:
and I also use forward declaration's as well. Maybe including it is causing something else to need a forward declaration? Is that possible? Would it hurt to forward declare every class that something uses?
Code: Select all
#ifndef WHATEVER_H
#define WHATEVER_H
//CODE HERE
#endif