Class Cs3d-Texture

Drawable that binds a texture for the duration of the draw method.

Part of:

package cityscape, class cs3d-parent, class opengl-loadable

Direct Superclass

cs3d-parentBase class for a cs3d model that contains children
opengl-loadableBase class for any object that has data to be loadable into an OpenGL context.
See the opengl-loa...

Slot

childrenInitargs::children; Reader:children-of; Type:list.
nameInitargs::name; Accessors:name; Type:symbol.
texture-idAccessors:texture-id-of; Type:integer.
texture-relative-pathInitform:*model-file-pathname*; Reader:texture-relative-path-of; Type:pathname.

Direct Method

draw
opengl-loadCode to be run when an opengl-loadable object is added to a running context or when the context c...
opengl-unloadCode to be run as an OpenGL context is closed, or an object is removed from the context.

Other Method

opengl-context-addAdd an opengl-loadable object to the running context, or queue for when one is started.