Jump to content

  • Log In with Google      Sign In   
  • Create Account

Ubermeowmix

Member Since 30 Jan 2010
Offline Last Active Today, 01:50 PM

Topics I've Started

Building GLEW for MinGW

20 February 2016 - 05:16 AM

Hi all,

 

Can anyone shed light on how the hell I build the GLEW libraries to work with CodeBlocks, it's driving me insane that I can't get started on an OpenGL/SDL2 project due to the stupid GLEW extensions.

 

I would really appreciate it if someone could direct me to a how-to or explain the steps.

 

Please save my sanity, muhahaahahaaa...


SDL2 saving to binary clarification

05 January 2016 - 05:38 PM

Hi all,

 

I'm messing around with SDL_RWwrite & SDL_RWread and trying to get my head around how to save arrays of structs or classes.

 

I have managed to successfully do this with ifstream to binary and back again and retain the structure of a class, is this possible with SDL2's functions or am I barking up the wrong tree.

 

If anyone can visually represent how the data is saved and why (or knows a link) that would be awesome.

 

Thanks for reading.


Linker errors Eugh!

21 September 2015 - 11:50 AM

Can anyone tell me why I cannot get -lglew32 to link at all.

 

Compiler is codeblocks

 

I've made sure it's the 32bit version

 

I've even tried copying the .dll into the folder to bypass and when I put -lglew32 in the linker section it just dies. It's very frustrating:

 

ld.exe||cannot find -lglew32|

 

Your help will be much appreciated


Implementing a quest/achievement system

06 April 2015 - 03:45 AM

What's the best way to implement a quest system that's modular and how are the variables checked for say conversations being had, are they stored in the entities themselves as boolean triggers or in a bigger global list/class.

 

I've never done one before an it's a bit daunting trying to figure out what course of action is best.

 

I thought that if I store the variables in the NPC's and then have the quest class check for whether condition1 & itemB have been done then that would be the best way to bolt on extra levels and characters.

 

Am I on the right track?


Anyone got any ideas where 4k a sec is coming from?

31 March 2015 - 12:12 PM

I've got a basic program running SDL2 that loads a surface and a class wrapper that handles object creation/texture loading. Before I even start to generate objects SDL is streaming extra memory at around 4k a second.

 

Is this a known issue or could I have created some weird loop. I don't call any new objects in my code apart from the class to hold the objects that will be created:

 

pAsset_explosions= new GeneralObject("disposable_explosion.png", screenCoords);
pAsset_explosions->fLoadImages(mpRenderer);

PARTNERS