VoxelEngine/Objects/Objects.py
2017-08-27 12:51:26 +02:00

14 lines
No EOL
357 B
Python

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