-
Notifications
You must be signed in to change notification settings - Fork 40
RAM API Reference Graphics
RAMDanceToolkit has some global method to draw shapes defined at ramGraphics.h.
Same to ofBox but has collision detection.
Example of collision detection is available on SoundCube.h scene in RAMDanceToolkit.
Same to ofSphere but has collision detection.
Example of collision detection is available on SoundCube.h scene in RAMDanceToolkit.
Same to ofSphere but has collision detection.
Draws ramActor using simple shape.
Draws ramRigidBody using simple shape.
Draws ramNodeArray using simple shape.
Use this method When you need to check is the ramNodeArray ramActor or ramRigidBody.
Draws lines between correspond nodes. Two ramNodeArrays must have same number of nodes.
Draws plane using passed ramNode.
vector<ramNode>
or many ramNode
can be passed as argument:
// vector
vector<ramNode> nodes;
nodes.push_back(some_node1);
nodes.push_back(some_node2);
nodes.push_back(some_node3);
ramStripe(nodes);
// ramNode (min:5, max:12)
ramStripe(some_node1, some_node2, some_node3, some_node4, some_node5, … some_node12);
To draw shadow on the floor, wrap your code to draw something using ramBeginShadow(), ramEndShadow().
Starts drawing shadow.
Ends drawing shadow.
Sets shadow alpha.
Sets shadow alpha.
Sets shadow alpha.
ramColor::RED_NORMAL
,
ramColor::RED_DEEP
,
ramColor::RED_LIGHT
,
ramColor::GREEN_NORMAL
,
ramColor::GREEN_DEEP
,
ramColor::GREEN_LIGHT
,
ramColor::BLUE_NORMAL
,
ramColor::BLUE_DEEP
,
ramColor::BLUE_LIGHT
,
ramColor::YELLOW_NORMAL
,
ramColor::YELLOW_DEEP
,
ramColor::YELLOW_LIGHT
,
ramColor::BLACK
,
ramColor::DARK_GRAY
,
ramColor::GRAY
,
ramColor::LIGHT_GRAY
,
ramColor::WHITE
,
ramColor::DARK_GRAY_ALPHA
,
ramColor::GRAY_ALPHA
,
ramColor::LIGHT_GRAY_ALPHA
,
ramColor::SHADOW
.
are available as preset.
// ramColor::RED_NORMAL returns ofColor::fromHex(0xff6666)
ofSerColor( ramColor::RED_NORMAL );
This Wiki and API References (RAMDanceToolkit 1.0.0) is created on 2013-03-09