C++ Game Engine. Use for practice and experiment.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Zooid Engine

Version: 0.1.1

A C++ game engine that implemented and used for practice and experiment. Currently developed using VS 2015.

I've been developing the engine during my free time between works, school and another project, so the progress is pretty much slow.

Things Done

These are some features that I made for this version of the engine.

  • Math Library
    • Some basic math data structures, such as Vector3, Vector2, Matrix3x3, Matrix4x4, and Quaternion;
    • Math operations and functions, such as Matrix-Quaternion conversion, Matrix rotate around an axis, Orthographis and Perspective matrix calculation.
    • Implement SIMD for vector4-vector4 multiplication and matrix4x4-matrix4x4 multiplication
  • Game Object Model
    • Basic game object model; Add and remove children from/to one object.
    • Some basic RTTI (or DTI for now)
  • Event System - Handling event in an object and broadcast to children if and only if there are children that handle such event.
  • Configurable Memory Management - Implemented using a collection of a number of memory pool; Implemented Handle struct to allocating and deallocating block from Memory Management.
  • Basic Resource Manager - Including reading and writing to File.
    • Material Resource Manager
    • Mesh Resource Manager
    • Buffer Resource Manager
    • Shader Resource Manager
  • OpenGL Renderer - Currently, developed for OpenGL 3.3 or later. Now, this's implemented using module system, so it'll be easy to change with another Graphics API in the future.
    • Buffer Manager - Handling generate/reading data buffer manager from CPU memory to GPU
    • Texture Manager - Reading texture to the engine
    • Shader Manager - Reading and compile shader to GPU
  • Custom Data Structures to work with Memory Management:
    • Resizable Array,
    • Resizable HashMap (also using HashString),
    • Custom String.
  • Input Manager that handle keyboard and mouse input
  • Basic Assets Structure and Management - Made structure for assets such as mesh files, textures files, or scene files.
    • Internal Mesh data format
  • Simple Drawlist - Made drawlist to be collected/accumulated before drawing to renderer.
  • Components
    • SceneComponent - which has position/transform in the game world.
    • RenderComponent - has Mesh to be drawn by renderer and also has transform.
  • Basic Module - make module system so it's easy to implement module in the engine.
  • Multithreading - game and rendering thread is in different thread now
  • ModelParser Tool - import external 3D model format to internal model/mesh format.
  • Basic Log Manager - support grouping log, enabling or disabling certain group, and put log into file (currently too intrusive)
  • Basic Physics - Currently using PhysX 3.4 (put "Physx" with PhysX path in Environment Variable)
  • Skeletal Animation - Basic Skeletal animation, including full-body animation, partial-body animation, animation blend and additive animation blend. The setting/animation blend can be setting using tree/hierarchical animation blending (setup using text file).
  • Font Rendering - The engine is now able to render font from font file, texture, generated SDF texture, and Multi-channel SDF texture.
  • Font Texture Generation Tools - generating font glyphs texture and descriptor file for the texture to read in the engine. The tools can generate SDF texture and Multi-channel SDF texture. The tools is used https://github.com/Chlumsky/msdfgen to help in SDF and MSDF generation.
  • Simple Game Demo: Space Shooter - basic input and simple spawn and destroying a component in runtime
  • Demo: Animation Demo - basic demo how animation set up and played. See "Resources/TestAnimation" for the assets used in the demo.
  • Misc
    • High resolution timer with C++11 or basic timer if not using C++11.

Libraries and External Codes

This list consists all libraries and code that help me implementing the engine.



  • Gregory, Jason. Game Engine Architecture. Second Edition. CRC Press, 2014
  • Deloura, Mark. Game Programming Gems. Charles River Media, 2000
  • Deloura, Mark. Game Programming Gems 2. Charles River Media, 2001
  • Watt, Alan. 3D Computer Graphics. Third Edition. Addison-Wesley, 2000
  • Learn OpenGL https://learnopengl.com/