Skip to content

monoclex/opengl-tilemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast OpenGL Tilemap Implementation

This is an impementation of an OpenGL tilemap as a single quad. The code is lovingly documented, so you should be able to figure out what it's doing. In fact, the entire point of this is entirely to hold the code. This readme is less important than the code, go read it!

There is a brief but accompanying blog post here

Code Structure

/assets
  /tilemap.png -- The image of the tilemap
/src
  /main.rs              -- Main source code entry
  /vertex_shader.vert   -- Vertex shader source
  /fragment_shader.frag -- Fragment shader source
/Cargo.lock -- Rust stuff
/Cargo.toml -- Rust stuff
/.gitignore -- Git stuff

Dive in at /src/main.rs, then read the vertex and fragment shaders. Good luck!

About

Implementation of an OpenGL tilemap as a single quad

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published