Search found 6 matches

by Genesis
Wed May 19, 2010 11:23 am
Forum: Programming Discussion
Topic: Halp plz [solved]
Replies: 4
Views: 436

Re: Halp plz

Is your position, normal and texture coordinate data stored in the same vertex buffer? If so, the stride you set in each gl*Pointer function will be equal to the size of the vertex data combined (i.e sizeof(position) + sizeof(normal) + sizeof(texcoord)).

*beaten to it by qpHalcy0n* :p
by Genesis
Wed May 19, 2010 11:12 am
Forum: Programming Discussion
Topic: [solved] trouble with code
Replies: 11
Views: 698

Re: trouble with code

by looking at the code below you can see that I doing is finding out if a number is a multiple of another number, by either 11 or 13, what I am trying to find out is how to make it so if a blocker number is in between them then to stop going down that path, I'll try to explain what I mean by that b...
by Genesis
Wed May 19, 2010 9:54 am
Forum: Programming Discussion
Topic: tips for memory managment
Replies: 8
Views: 637

Re: tips for memory managment

There's a few options available: 1. Use smart/shared pointer containers 2. Write a garbage collector 3. Explictly allocate & deallocate memory on demand Using smart pointers gives you the advantage of regular pointers with automatic reference counting to destroy objects and deallocate the associ...
by Genesis
Wed May 19, 2010 9:36 am
Forum: Programming Discussion
Topic: Help Understanding Pointer Math
Replies: 6
Views: 623

Re: Help Understanding Pointer Math

Never ask a java teacher a C++ question, especially a one to do with pointers, they'll segfault on you :lol: ...And I say this from experience, one of my lecturers hates C++, slags it off all the time in lectures, and I'm thinking to myself "you're java's bitch" The day one of my lecturer...
by Genesis
Mon May 17, 2010 7:16 pm
Forum: Programming Discussion
Topic: deleting an object
Replies: 9
Views: 682

Re: deleting an object

When a particle is deleted during the update() you need to specify that s_Particle no longer contains a valid pointer to object. You can do this using automated memory management with smart pointers (the example below uses std::shared_ptr from C++0x) or by setting the variable to 0 or NULL (or nullp...
by Genesis
Mon May 17, 2010 10:03 am
Forum: Game Development
Topic: What projects are you currently working on?
Replies: 500
Views: 165007

Re: What projects are you currently working on?

Project Name: Genesis Development Kit (GDK) Project Start Date: September 2009 Platform: PC Technologies: C++/C++0x, OpenGL, DirectX 9.0 (Windows Build), OIS (Cross-Platform), Win32 API (Windows Build) Tools: Code::Blocks, MinGW/GCC Background: GDK (previously named Seotern Engine) is the early beg...