mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 16:31:48 +01:00
Add Imgui, Add TextureManager
From 1.1k texture loads to 5
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <string>
|
||||
#include "Texture.h"
|
||||
|
||||
int Texture::m_TextureCounter{ 0 };
|
||||
|
||||
Texture::Texture( const std::string& imagePath )
|
||||
:m_Id{ }
|
||||
@@ -10,6 +11,7 @@ Texture::Texture( const std::string& imagePath )
|
||||
,m_Height{ 10.0f }
|
||||
,m_CreationOk{ false }
|
||||
{
|
||||
m_TextureCounter++;
|
||||
CreateFromImage( imagePath );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user