VoxelEngine/Objects/Objects.py

14 lines
357 B
Python
Raw Normal View History

2017-08-27 12:51:26 +02:00
import numpy as np
import typing
class Object:
GeometryShaderId = -1
def draw(self)->bool:
return False
def initializeShader(self)->bool:
return True
def __init__(self):
self.pos = np.zeros((3))
self.color = np.zeros((3))
self.programmId = -1
def translate(self,M):
self.pos = self.pos * M