roc/roc.py
cecilkorik deaa55d535 working textures!
completely overhauled models framework...
now loads Model, Mesh, Material, and Texture (plus TextureFile)

fixed a number of bugs/inflexibilities in gamedata xml parser

refactored the various modules to use "init" functions to better control when they get loaded (ie, before or after OpenGL init)
which it turns out is *very important*, because if the shaders and textures get loaded before OpenGL does, they don't work. go figure.
2011-06-17 19:54:49 -06:00

30 lines
423 B
Python
Executable file

import pygame
import files
import video
import shader
import models
import roc_main
def init2d():
init(videoinit=video.init2d)
def init3d():
init(videoinit=video.init3d)
def init(videoinit):
pygame.init()
files.init()
shader.init()
size = width, height = (1600,1200)
size = width, height = (1024,768)
video.set_res(size)
videoinit()
video.enable_vsync()
models.init()
def main():
roc_main.mainloop()