draw-world* ( world -- )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » Subclassing worlds

Prev:resize-world ( world -- )


Vocabulary
ui.gadgets.worlds

Inputs
worlda world


Outputs
None

Word description
Called when world needs to be redrawn. The world's OpenGL context is current when this method is called.

Definition


Methods































M: raytrace-world draw-world*
{
{ "primitive-mode" [ drop triangle-strip-mode ] }
{ "indexes" [ drop T{ index-range { count 4 } } ] }
{ "uniforms" [ <sphere-uniforms> ] }
{ "vertex-array" [ vertex-array>> ] }
} <render-set> render ;