Squeak Class Documentation category index | class index  
 
B3DPrimitiveShader
  category: Balloon3D-PrimitiveEngine
  superclass: B3DVertexShader
  subclasses:

I am a shader that uses primitive level support.
NOTE: Currently, primitive and non-primitive lights cannot be mixed.

instance methods
  accessing
  addLight:
primitiveLights
primitiveMaterial
removeLight:

  initialize
  initialize
reset

  shading
  primShadeVB:count:lights:material:vbFlags:
processVertexBuffer:

class methods
  accessing
  version

  testing
  isAvailable

instance methods
  accessing top  
 

addLight:

NOTE: This does not work if primitive/non-primitive lights are mixed!


 

primitiveLights


 

primitiveMaterial


 

removeLight:

Remove the light with the given index


  initialize top  
 

initialize


 

reset


  shading top  
 

primShadeVB:count:lights:material:vbFlags:

Primitive. Shade all the vertices in the vertex buffer using the given array of primitive light sources. Return true on success, false otherwise.


 

processVertexBuffer:

Do the primitive operation


class methods
  accessing top  
 

version

Return the version of this shader


  testing top  
 

isAvailable

Return true if this part of the engine is available