Squeak Class Documentation category index | class index  
 
B3DPrimitiveVertex
  category: Balloon3D-Engine
  superclass: Object
  subclasses:

I represent all per vertex information used in Balloon 3D primitive operations. I store either 32bit floats or integers depending on what is requested.

C representation:

typedef struct B3DPrimitiveVertex {
float position[3];
float normal[3];
float texCoord[2];
float rasterPos[4];
int pixelValue32;
int clipFlags;
int windowPos[2];
} B3DPrimitiveVertex;

instance methods
  accessing
  b3dColor
b3dColor:
clipFlags
clipFlags:
color
color:
floatAt:
floatAt:put:
integerAt:
integerAt:put:
normal
normal:
pixelValue32
pixelValue32:
position
position:
rasterPos
rasterPos:
texCoords
texCoords:
windowPos
windowPos:
wordAt:
wordAt:put:

  private
  privateReplaceFrom:to:with:startingAt:

  rasterizer-support
  aValue
alphaValue
bValue
blueValue
gValue
greenValue
rValue
redValue
texCoordS
texCoordT

  testing
  sortsBefore:

  transform-support
  normalX
normalX:
normalY
normalY:
normalZ
normalZ:
positionX
positionX:
positionY
positionY:
positionZ
positionZ:
rasterPosW
rasterPosW:
rasterPosX
rasterPosX:
rasterPosY
rasterPosY:
rasterPosZ
rasterPosZ:
windowPosX
windowPosX:
windowPosY
windowPosY:

class methods
  instance creation
  new

instance methods
  accessing top  
 

b3dColor


 

b3dColor:


 

clipFlags


 

clipFlags:


 

color


 

color:


 

floatAt:


 

floatAt:put:


 

integerAt:

Return the integer at the given index


 

integerAt:put:

Store the integer at the given index


 

normal


 

normal:


 

pixelValue32


 

pixelValue32:


 

position


 

position:


 

rasterPos


 

rasterPos:


 

texCoords


 

texCoords:


 

windowPos


 

windowPos:


 

wordAt:


 

wordAt:put:


  private top  
 

privateReplaceFrom:to:with:startingAt:


  rasterizer-support top  
 

aValue


 

alphaValue


 

bValue


 

blueValue


 

gValue


 

greenValue


 

rValue


 

redValue


 

texCoordS


 

texCoordT


  testing top  
 

sortsBefore:

Return true if the receiver should be sorted before the given primitive vertex.
Support for rasterizer simulation. Only valid if window position has been computed before.


  transform-support top  
 

normalX


 

normalX:


 

normalY


 

normalY:


 

normalZ


 

normalZ:


 

positionX


 

positionX:


 

positionY


 

positionY:


 

positionZ


 

positionZ:


 

rasterPosW


 

rasterPosW:


 

rasterPosX


 

rasterPosX:


 

rasterPosY


 

rasterPosY:


 

rasterPosZ


 

rasterPosZ:


 

windowPosX


 

windowPosX:


 

windowPosY


 

windowPosY:


class methods
  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.