Panda3D
Functions
shaderPool.I File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

Functions

 CPT (Shader) ShaderPool
 Loads the given filename up into a shader, if it has not already been loaded, and returns the new shader. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
aignacio
Date
2006-03

Definition in file shaderPool.I.

Function Documentation

◆ CPT()

CPT ( Shader  )
inline

Loads the given filename up into a shader, if it has not already been loaded, and returns the new shader.

If a shader with the same filename was previously loaded, returns that one instead. If the shader file cannot be found, returns NULL.

Definition at line 39 of file shaderPool.I.