Skip to content

juergen0815/sdl-multi-texture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdl-multi-texture

Author:

Jurgen Schober

Date:

January, 2013

Short:

Example using multiple textures with OpenGL.

Description:

Based on sdl-vertex-animation this example uses code from previous sdl-xx-examples I've written.

We use a base texture and a second one as a light map simply blending it over the base texture.

No shaders are used. Stock OGL 2.x

New additions:

- Interleaved vertex arrays (combine vertex with texture vectors)
- New brush loader simplifies loading of textures
- Some cleanup in the init code
- Textures can control filter and wrap mode

All sdl-xx-examples are written in C++11 using MinGW gcc 4.6 and are Windows only. I'm using
Eclipse Juno as Development IDE.

Libs used:

boost_thread
boost_system
boost_filesystem
boost_iostreams
glew
+ OpenGL

License:

Use as is. No license other then the ones included with third party libraries are required.

Compiler used:

MinGW with Eclipse Juno (gcc4.6 with -std=c++0x). Windows only. Linux might just work, MacOS will 
need some work due to the fact OSX needs to run the render loop in the main loop (compiles with 
LVM compiler). This example runs a render thread decoupled from the main thread.

Have fun Jurgen

About

Multi texture example using SLD/OpenGL, C++11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published