def setupGlobals(): """Setup Random, Sounds, FrameRate, Textures, and Sampler""" Shapes.seedRandom() globs.pulseSound = Mix_LoadWAV( os.path.join("assets", globs.pulseSound).encode()) # load PulseSound file setupFrameRateGlobals(globs.DESIRED_FRAMES_PER_SEC) setupTextures() if (globs.sampler == None): globs.sampler = Sampler.Sampler() globs.sampler.bind(0)
def setupGlobals(): """Setup Random, Sounds, FrameRate, Textures, and Sampler""" Shapes.seedRandom() setupFrameRateGlobals(globs.DESIRED_FRAMES_PER_SEC) setupResources() set_glEnables() globs.playerStartPos = math3d.vec3(0,.5,0) globs.playerScale = math3d.vec3(1, 1, 1) globs.bulletScale = math3d.vec3(.25, .25, .25) globs.TWO_PI = 2 * math.pi if(globs.sampler == None): globs.sampler = Sampler.Sampler() globs.sampler.bind(0)
def setupGlobals(): """Setup Random, Sounds, FrameRate, Textures, and Sampler""" Shapes.seedRandom() setupFrameRateGlobals(globs.DESIRED_FRAMES_PER_SEC) setupResources() glEnable(GL_BLEND) glEnable(GL_PROGRAM_POINT_SIZE) glCommands.setClassicOpacity() globs.TWO_PI = 2 * math.pi if(globs.sampler == None): globs.sampler = Sampler.Sampler() globs.sampler.bind(0)
def setupGlobals(): """Setup Random, Sounds, FrameRate, Textures, and Sampler""" Shapes.seedRandom() globs.pulseSound = Mix_LoadWAV( os.path.join("assets", globs.pulseSound).encode()) # load PulseSound file setupFrameRateGlobals(globs.DESIRED_FRAMES_PER_SEC) setupTextures() glEnable(GL_BLEND) glEnable(GL_PROGRAM_POINT_SIZE) glCommands.setClassicOpacity() globs.TWO_PI = 2 * math.pi if (globs.sampler == None): globs.sampler = Sampler.Sampler() globs.sampler.bind(0)