[FEATURE] simple GUI support
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
|
||||
namespace toolbox
|
||||
{
|
||||
glm::mat4 CreateModelMatrix(glm::vec2 translation, glm::vec2 scale)
|
||||
{
|
||||
glm::mat4 matrix(1.0f);
|
||||
matrix = glm::translate(matrix, glm::vec3(translation.x, translation.y, 0));
|
||||
matrix = glm::scale(matrix, glm::vec3(scale.x, scale.y, 0));
|
||||
return matrix;
|
||||
}
|
||||
|
||||
glm::mat4 CreateModelMatrix(glm::vec3 translation, glm::vec3 rotation, float scale)
|
||||
{
|
||||
glm::mat4 matrix(1.0f);
|
||||
|
||||
@@ -8,6 +8,16 @@ namespace toolbox
|
||||
#define WINDOW_WIDTH 1400.0f
|
||||
#define WINDOW_HEIGT 800.0f
|
||||
|
||||
/*
|
||||
* @brief: This function will create a model matrix
|
||||
*
|
||||
* @param translation: The position of the model
|
||||
* @param scale: The scale of the model
|
||||
*
|
||||
* @return: The model matrix of the model
|
||||
*/
|
||||
glm::mat4 CreateModelMatrix(glm::vec2 translation, glm::vec2 scale);
|
||||
|
||||
/*
|
||||
* @brief: This function will create a model matrix
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user