Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Kimmi

Member Since 29 Nov 2002
Offline Last Active Yesterday, 09:20 AM

#5135382 avoid flickering (c++/opengl/sdl)

Posted by Kimmi on 28 February 2014 - 09:07 AM

Are you using bouble-buffering with OpenGL? If now: you should. You can check this in your SDL-configuration for your OpenGL-Context: just check the SDL-doc for this feature.

 

With best regards,

Kimmi




#5133193 How did you learn C++?

Posted by Kimmi on 21 February 2014 - 02:41 AM

I started a implement a FE-solver + UI in c++ as my first c++ project ( 2001 with MFC, not the best choise as a first project I have to say ).

 

So I had a target, motivation and a hard timeline. Then I looked into the concepts provided by c++ which seem to be the best approach and played around with it until it worked.

 

In my experience it is much easier to learn a new language with a real project than just reading a book. You can transfer the stuff you read into a real solution which solves a real problem. And you can lear how the toolchain works. 

 

Hope that helps ...

 

Kim




#5070755 array of objects?

Posted by Kimmi on 18 June 2013 - 12:47 AM

And if you want to use a std::vector please add a copy constructor and the == and = operators.

 

Greetings,

Kim




#4892125 Loading .OBJ

Posted by Kimmi on 09 December 2011 - 03:13 AM

Right, you can use our makefile or generate a workspace for your IDE like eclipe or something else if cmake supports this. And we are part of the unstable branch of Ubuntu Posted Image

Kimmi


#4891769 Loading .OBJ

Posted by Kimmi on 08 December 2011 - 07:01 AM

You can also try the AssImp-library to load an Obj-File. Assimp offers various model loaders and a common data structure to access the data. You can also find some easy to understand examples in the repository as well. Just look here to learn more.

Kimmi


#4867067 COLLADA To Engine-Specific Format

Posted by Kimmi on 29 September 2011 - 12:09 AM

As a Assimp-developer I can recommend AssImp as well Posted Image. If you need some ideas how to use it you can look at the current Clan-Lib-release. Their moved to assimp, too.

Kimmi


#4829928 bit class problem

Posted by Kimmi on 01 July 2011 - 03:36 AM

Have you thought about using the shift operator istead of using an bool-value for a single bit which is a waste of memory?

For instance:


class BitField
{
  unsigned int m_BitField;
  void set( unsigned int bitPos )
  {
 	unsigned int val = 1 << bitPos; 
 	m_BitField |= val; 
  } 

  bool isSet( unsigned int pos )
  {
   	unsigned int val = 1 << bitPos;
	if ( m_BitField & val )
		return true;
	else
		return false;
 
  }
};

Kimmi


#4627628 SDL and DirectX

Posted by Kimmi on 31 March 2010 - 10:08 PM

You can use this article to get a clue how to use SDL with DirectX 9.0. Maybe there you can find some ideas how to use it together:
Direct3D 9.0 with SDL
Normally I am using SDL if I have to use a code on Windows and Linux for instance. Do you want to do something similar?

Greetings,
Kimmi


PARTNERS