vec2, vec3 and vec4 for SDL

Started by
1 comment, last by NightCreature83 9 years, 3 months ago

Hi, how can i make a vec2, vec3 and vec4 to work with SDL, I know there is vec in openGL, but i want my 2d games to only run using SDL, and i want this vec to be pass in other classes

Advertisement

Take a look at http://glm.g-truc.net/0.9.6/index.html, it's C++ only though.

Are you trying to use GLSL constructs in a C++ program?

There are a few math libs you can use or write your own vector and matrix math code, but this is not in the C++ standard on its own.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

This topic is closed to new replies.

Advertisement