Meshes can display textures

This commit is contained in:
Julian Nießner
2018-05-06 17:35:07 +02:00
parent aa9b1a1949
commit 7d616b6ce0
7 changed files with 74 additions and 25 deletions

View File

@@ -4,7 +4,7 @@
Texture2D::Texture2D()
: Width(0), Height(0), Internal_Format(GL_RGB), Image_Format(GL_RGB), Wrap_S(GL_REPEAT), Wrap_T(GL_REPEAT), Filter_Min(GL_LINEAR), Filter_Max(GL_LINEAR)
: Width(0), Height(0), Internal_Format(GL_RGB), Image_Format(GL_RGB), Wrap_S(GL_REPEAT), Wrap_T(GL_REPEAT), Filter_Min(GL_NEAREST), Filter_Max(GL_NEAREST)
{
glGenTextures(1, &this->ID);
}