Skip to content

return0jz/framework2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

framework2d

Yet another 2D game framework for the desktop. Created on 14/7/21

Features:

OpenGL:

Contains wrappers around basic OpenGL objects (vertex buffers, index buffers, 2D textures).

Shaders:

Also has a shader class that supports loading vertex and fragment shaders from a string or a file.

Platform Abstraction:

Furthermore, it contains platform-specific abstractions such as a combined window+openGLcontext object and an simple input system that handles keyboard and mouse. This is handled by SDL2 in the background.

2D Renderer:

Finally, the framework includes a small renderer that can handle individual files of sprites and spritesheets (loaded with stb_image). It also allows 3D rotations unlike other 2D renderers in libraries such as SDL or Allegro.

GUI:

Framework is integrated with IMGUI. An object abstraction around IMGUI context creation is also included.

Requirements:

  • SDL2
  • GLEW

For the future:

Todo:

  • Add functionality for rendering quads filled with just colors (quite simple) Added since 15/7/21
  • Add support for mouse input Added since 15/7/21
  • Allow option for pivot points for rotation Added since 16/7/21
  • Add audio playing Added since 27/7/21
  • Allow option for texture filtering method.
  • Revamp the trash project structure
  • Unspaghetti the source code