some minor refresh

This commit is contained in:
Hartmut Seichter 2023-06-24 08:34:15 +02:00
parent 7d17df39b3
commit d65aba4d68
8 changed files with 278 additions and 768 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 3.20)
project (lua)

View file

@ -124,7 +124,7 @@ struct renderer::impl {
this->_change_count = m.change_count();
#if 0
#if 1
// get errors
auto error = glGetError();
if (error != GL_NO_ERROR) {

View file

@ -159,17 +159,17 @@ struct shader::impl
void bind(int location,const matrix3x3f& m)
{
glUniformMatrix3fv(location,1,GL_FALSE,m.data);
glUniformMatrix3fv(location,1,GL_FALSE,m.ptr());
}
void bind(int location,const matrix4x4f& m)
{
glUniformMatrix4fv(location,1,GL_FALSE,m.data);
glUniformMatrix4fv(location,1,GL_FALSE,m.ptr());
}
void bind(int location,const vector4f& v)
{
glUniform4fv(location,1,v.data);
glUniform4fv(location,1,v.ptr());
}
void bind(int location,const float& v)