Zomon333 / SadBoat-Engine

I was listening to someone play ukelele and it made me want to program a platformer. This is that.
3 stars 0 forks source link

Create InterfaceBlock Class #13

Closed Zomon333 closed 2 years ago

Zomon333 commented 2 years ago

We'll need to use interface blocks extensively in our OpenGL implementation. We should have a class to abstract the usage of them. This class will likely be a parent class of various other Blocks like UniformBlocks.

We may have a desire to store individual Shader Variables in the InterfaceBlock class as member variables using a template. Discuss.

More details will follow upon completion of Chapter 2 notes.

Zomon333 commented 2 years ago

Completion of Chapter 2 Notes:

More data may follow. BufferBlocks also exist but looks like they'll benefit from being a child of the InterfaceBlock class. We may also just rename this to UniformBlock because I don't see any other blocks other than Buffer that require a C++ implementation.