-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiled and Linked Shaders, Implemented Vertex Buffer. Modifed xmake scripts. Reorganized the samples asset folder structure.
- Loading branch information
Showing
34 changed files
with
712 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include <GL/glew.h> | ||
|
||
namespace CGL::Graphics | ||
{ | ||
template <typename T> | ||
struct OPENGLConstantBuffer | ||
{ | ||
using value_type = T; | ||
|
||
OPENGLConstantBuffer() | ||
{ | ||
// Ensure 16-byte alignment | ||
static_assert((sizeof(T) % 16) == 0, "Constant buffer size must be 16-byte aligned."); | ||
} | ||
GLuint Buffer; | ||
}; | ||
} // namespace CGL::Graphics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
#include <GL/glew.h> | ||
|
||
namespace CGL::Graphics | ||
{ | ||
struct OPENGLIndexBuffer | ||
{ | ||
u32 Stride; | ||
GLuint EBO; | ||
}; | ||
} // namespace CGL::Graphics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
#include <GL/glew.h> | ||
|
||
namespace CGL::Graphics | ||
{ | ||
struct OPENGLPixelShader | ||
{ | ||
GLuint FragmentShader; | ||
}; | ||
} // namespace CGL::Graphics |
Oops, something went wrong.