-
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.
* Implemented RHI for OpenGL * Modified to support OpenGL RHI * Added support for OnRender function for OpenGL, Fixed xmake files * fixed indentation and xmake files * Removed OnRender implementation for OpenGL * Removed default ctor * Working Hello Triangle sample Compiled and Linked Shaders, Implemented Vertex Buffer. Modifed xmake scripts. Reorganized the samples asset folder structure. * PR changes
- Loading branch information
Showing
34 changed files
with
573 additions
and
80 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 PixelShader; | ||
}; | ||
} // namespace CGL::Graphics |
Oops, something went wrong.