Public Member Functions | Protected Member Functions | Friends

World Class Reference

#include <World.h>

Inheritance diagram for World:
Node

List of all members.

Public Member Functions

void setActiveCamera (Camera *camera)
CameragetActiveCamera ()
void setClearColorBuffer (bool do_clear, vec4f color)
void setClearDepthBuffer (bool do_clear, f32 depth)
void setClearStencilBuffer (bool do_clear, i32 stencil)
void setViewport (i32 x, i32 y, u32 width, u32 height)
void setFullViewport ()
void getKNNLights (Light **light_list, u32 *n_lights_found, Sphere *search_volume, u32 kNN)
void logInfo ()

Protected Member Functions

 World (const char *nname)

Friends

class SceneGraph

Detailed Description

Defines a World node.


Member Function Documentation

void World::getKNNLights ( Light **  light_list,
u32 *  n_lights_found,
Sphere search_volume,
u32  kNN 
)

Returns the kNN nearest light sources from a given search volume. Note: This may be pretty slow if there are many light since they are not organized in a BVH or anything like that yet - i.e. this is a linear search.

WARNING: Untested function!

void World::setActiveCamera ( Camera camera )

A camera must be set as the active camera, so that the scene is rendered from a specified point, with the cameras projection settings.

void World::setClearColorBuffer ( bool  do_clear,
vec4f  color 
)

Clear the color buffer with color upon renderAll()-call

void World::setClearDepthBuffer ( bool  do_clear,
f32  depth 
)

Clear the depth buffer with a depth value upon renderAll()-call

void World::setClearStencilBuffer ( bool  do_clear,
i32  stencil 
)

Clear the stencil buffer with a stencil value upon renderAll()- call

void World::setFullViewport (  )

Reset the viewport to fullscreen (default)

void World::setViewport ( i32  x,
i32  y,
u32  width,
u32  height 
)

Set viewport (pixels)


The documentation for this class was generated from the following files:
 All Classes Functions