Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 12 Mar 2007
Offline Last Active Feb 16 2013 11:32 AM

Topics I've Started

OOP with vectors

15 February 2013 - 08:57 AM

First post, I'm making my first game, building a framework and making some progress.


I've created a class for my entities, and i've created a std::vector of pointers to the instances so that i can loop through them to trigger a member fuction to update their logic




what i want to do though, is inside that updateLogic() member function, i want to cycle through every other member of the entity vector, but the problem i have, is i can't define the entity vector inside the entity class definition?





OpenGL in a VS2008 C++ / CLR Form

11 March 2009 - 02:08 AM

Hello :) Ok, so i am making a game in vanilla c++ with SDL and OpenGL, but i need to make an editor for adding resources etc. I've chosen to do so with C++ / CLR in Visual Studio 2008 Express. Now i don't really know much about the .net aspect of C++ and I'm not looking for someone to tutor me on it, but what i am looking for are the "Magic Words" i can use to search for what i need in Google (unless you are willing to help in more detail ;) OK, so what i need, is to know what it is, or what the process is, for rendering an OpenGL output to <whatever> that i can put on a Form, in a window in Visual Studio. Can i still use SDL to initiate OpenGL, or do i use GLUT? Thanks :)

OpenGL, C++, Scaling a texture within a quad.

03 January 2009 - 03:49 AM

i want to make several 'sprite' quads with a single texture that has all the frames of animation on it, and just offset the texture to the right place. I can offset the texture within the quad, but the problem is, the texture is scaled to fit inside the quad, showing the whole sprite sheet, how to i keep it from doing that?

Immovable OpenGL Window

25 September 2008 - 12:54 AM

I'm using OpenGL with SDL in C++ and its all going ok so far, except I've setup the program to create a window, not fullscreen with this; SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_DEPTH, SDL_OPENGL) but the window it creates cant be dragged to a new position in windows. Is there something i have to do to allow his?

Sprite / Animation / Asset Class Design

30 July 2008 - 12:19 PM

Hi. I'm just starting to build some proper sprite, object and animation handling for a small 2D game in C++ with SDL, but my problem is more conceptual than implementation. I'm having a hard time working out the concepts of asset handling etc, and so I've turned to laying out my attempt in a mind map, I'd appreciate the opinions of anyone who knows better than me! A Mind Map of my attempt at a sprite class Thanks in advance. *edit* Made a couple of changes. Paperclip = array house = class pencil = struct key = identifier Am i missing anything that would be useful? [Edited by - Gravious on July 30, 2008 8:45:18 PM]