22 info(
"Minimal scene with a texture mapped rectangle with a point light source.\n"
23 "You can find all other test scenes in the menu File > Load Test Scenes."
24 "You can jump to the next scene with the Shift-Alt-CursorRight.\n"
25 "You can open various info windows under the menu Infos. You can drag, dock and stack them on all sides.\n"
26 "You can rotate the scene with click and drag on the left mouse button (LMB).\n"
27 "You can zoom in/out with the mousewheel. You can pan with click and drag on the middle mouse button (MMB).\n");
51 light1->
name(
"light node");
62 SLNode* rectNode =
new SLNode(rectMesh,
"rectangle node");
The AppCommon class holds the top-level instances of the app-demo.
Class declaration for an SLScene inherited class.
SLVec2< SLfloat > SLVec2f
SLVec4< SLfloat > SLCol4f
static SLstring texturePath
Path to texture images.
void registerAssetsToLoad(SLAssetLoader &al) override
All scene specific assets have to be registered for async loading in here.
void assemble(SLAssetManager *am, SLSceneView *sv) override
After parallel loading of the assets the scene gets assembled in here.
void addTextureToLoad(SLGLTexture *&texture, const SLstring &path, SLint min_filter=GL_LINEAR_MIPMAP_LINEAR, SLint mag_filter=GL_LINEAR, SLTextureType type=TT_unknown, SLint wrapS=GL_REPEAT, SLint wrapT=GL_REPEAT)
Add 2D textures with internal image allocation.
Toplevel holder of the assets meshes, materials, textures and shaders.
void colors(const SLCol4f &uniformColor)
Sets a uniform background color.
SLBackground & background()
SLLightSpot class for a spot light source.
Defines a standard CG material with textures and a shader program.
An SLMesh object is a triangulated mesh, drawn with one draw call.
SLNode represents a node in a hierarchical scene graph.
void addChild(SLNode *child)
void translation(const SLVec3f &pos, SLTransformSpace relativeTo=TS_parent)
void name(const SLstring &Name)
SLRectangle creates a rectangular mesh with a certain resolution.
The SLScene class represents the top level instance holding the scene structure.
SceneView class represents a dynamic real time 3D view onto the scene.
void doWaitOnIdle(SLbool doWI)
SLCamera * sceneViewCamera()