def __init__(self):
     self.obj = SBMObject()
     self.model_matrix = (GLfloat * 16)(*identityMatrix)
    from OpenGL.GLUT import *
    from OpenGL.GL import *
    from OpenGL.GLU import *
    from OpenGL.raw.GL.ARB.vertex_array_object import glGenVertexArrays, glBindVertexArray
except:
    print('''
    ERROR: PyOpenGL not installed properly.
        ''')
    sys.exit()

import numpy as np
from math import cos, sin
import glm
identityMatrix = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]

myobject = SBMObject()
ktxobject = KTXObject()
overlay = OVERLAY_()

program = GLuint(0)
mv_location = GLint(0)
mvp_location = GLint(0)
stretch_location = GLint(0)
vao = GLuint(0)
buffer = GLuint(0)


class Scene:
    def __init__(self, width, height):
        global program
        global mv_location
Exemplo n.º 3
0
 def __init__(self):
     self.obj = SBMObject()
     self.model_matrix = glm.mat4