Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
Favorite Tags
Member Avatar for epicbeast9022

Hello everybody I [I]thought[/I] I understood inheritance but it turns out I don't. I am creating an SDL/OpenGL mini-GUI library. I have a master class, GUIComponent, with subclasses such as TextLabel under it. I have a vector called guiList that is initialized as [ICODE]std::vector<GUIUnit*> guiList[/ICODE] (it's extern'd and initialized elsewhere; …

Member Avatar for vijayan121
0
172
Member Avatar for epicbeast9022

Hello, I cannot read a file, config.cfg, in the current directory on MacOS X 10.6. I'm running a console app. Can anybody tell me what I'm doing wrong? (By the way the getline() function returns no string.) [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, …

Member Avatar for epicbeast9022
0
375
Member Avatar for epicbeast9022

#include "includes.h" #include "constants.h" #include "functions.h" int pscore=0,cscore=0,ppaddle=185,cpaddle=185,ballSpeed = 0,cpuPadSpd = 0,frame = 0; SDL_Surface *screen=NULL,*secondary=NULL,*playerscore=NULL,*cpuscore=NULL,*cpuwin=NULL,*playerwin=NULL; bool gameEnded = false,selectedDiff=false; TTF_Font *font,*humungo; SDL_Event e; //PongBall ball; void cleanup() { SDL_Quit(); SDL_EnableUNICODE(0); exit(0); } bool init() { if (SDL_Init(SDL_INIT_EVERYTHING) == -1) return false; if (TTF_Init() == -1) return false; screen = …

Member Avatar for rubberman
0
213
Member Avatar for epicbeast9022

Hi, I'm trying to make a pong game on Xcode 3.2 with SDL but nothing displays, just a black window. Codes: [CODE]#include "includes.h" #include "constants.h" #include "functions.h" int pscore=0,cscore=0,ppaddle=185,cpaddle=185,ballSpeed = 0,cpuPadSpd = 0,frame = 0; SDL_Surface *screen=NULL,*secondary=NULL,*playerscore=NULL,*cpuscore=NULL,*cpuwin=NULL,*playerwin=NULL; bool gameEnded = false,selectedDiff=false; TTF_Font *font,*humungo; SDL_Event e; //PongBall ball; void cleanup() { …

0
120
Member Avatar for epicbeast9022

Hi everyone, I'm trying to program a game in C++ using SDL and i want to get peoples names. its not working though, and I'm really confused as to [B]why[/B]. :?: i'm using code like the following: [B]StringInput.h[/B] [CODE] class StringInput { private: std::string str; SDL_Surface *text; int x,y,r,g,b; SDL_Color …

Member Avatar for Stefano Mtangoo
0
568
Member Avatar for tomtetlaw

Is there anything you have to glEnable for glutBitmapCharacter to work? Because when I use that function, nothing shows up on the screen. At the moment this is how I'm trying to draw: [icode]glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, 'A');[/icode] These are the things I've enabled: [code=c] glEnable(GL_DEPTH_TEST); glEnable(GL_TEXTURE_2D); [/code]

Member Avatar for N1GHTS
0
1K