Building a C++ Game Engine from Scratch | Scion2D Episode 14 - Batch Renderer and Render System

Опубликовано: 14 Июнь 2026
на канале: JADE-ite Game Development
1,023
31

Building a C++ Game Engine from Scratch | Scion2D Episode 14

In this video, we continue building Scion2D, a custom 2D C++ game engine from scratch using Modern C++, OpenGL, SDL2, EnTT, and Lua.

In Episode 14, we begin building the rendering architecture for the engine by creating the Batch Renderer system.

This video focuses primarily on creating the Sprite Batch Renderer that will allow us to efficiently render large numbers of sprites while reducing OpenGL draw calls.

Topics covered in this video:

Creating the Batch Renderer
Introduction to batch rendering
Organizing vertex buffers and index buffers
Rendering textured sprites
Reducing OpenGL draw calls
Preparing the Render System
Organizing rendering architecture
Creating scalable rendering pipelines
Working with OpenGL buffers and rendering data

This is the first part of the rendering system implementation. In the next video, we will create the actual Render System and connect it to the ECS architecture.

Optional Challenge:

Before the next video, try creating the Render System yourself.

Things you will need:

Create an ECS view filtered for Transform and Sprite components
Use the camera projection
Use the sprite shader from the Asset Manager
Access the sprite texture ID
Add texture_name to the Sprite Component
Add layer sorting support to the Sprite Component

Helpful OpenGL Documentation:

glDrawElements:
https://docs.gl/gl4/glDrawElements

glBindTextureUnit:
https://registry.khronos.org/OpenGL-R...

This series is focused on teaching real game engine development step by step while building an actual engine and editor from the ground up.

Scion2D is being developed with modern C++ and will eventually power a future JRPG project called The Lost Children.

🔗 GitHub Repository
Explore the project here:
https://github.com/dwjclark11/Scion2D

💬 Join the Community
Chat, give feedback, or get help on Discord:
  / discord  

📺 Watch the Full Playlist
Catch all the videos in the series:
   • Build a 2D Game Engine in C++ | Scion2D Ga...  

👍 Like the video and subscribe for future engine development tutorials and graphics programming content.

💬 Questions or ideas? Drop a comment below. I would love to hear your thoughts and suggestions.