SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
AppDemoSceneAnimNodeMass2.h
Go to the documentation of this file.
1 /**
2  * \file AppDemoSceneAnimNodeMass2.h
3  * \brief Class declaration for an SLScene inherited class
4  * \details For more info about App framework and the scene assembly see:
5  * https://cpvrlab.github.io/SLProject4/app-framework.html
6  * \date May 2024
7  * \authors Marcus Hudritsch, Marino von Wattenwyl
8  * \copyright http://opensource.org/licenses/GPL-3.0
9  * \remarks Please use clangformat to format the code. See more code style on
10  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
11 */
12 
13 #ifndef APPDEMOSCENEANIMMASS2_H
14 #define APPDEMOSCENEANIMMASS2_H
15 
16 #include <SLScene.h>
17 
18 //-----------------------------------------------------------------------------
19 //! Class for benchmark mass animation test scene
21 {
22 public:
24  void registerAssetsToLoad(SLAssetLoader& al) override;
25  void assemble(SLAssetManager* am, SLSceneView* sv) override;
27  SLScene* s,
28  SLint depth,
29  SLfloat x,
30  SLfloat y,
31  SLfloat z,
32  SLfloat scale,
33  SLuint resolution,
34  SLVMaterial& mat);
35 };
36 //-----------------------------------------------------------------------------
37 
38 #endif
float SLfloat
Definition: SL.h:173
unsigned int SLuint
Definition: SL.h:171
int SLint
Definition: SL.h:170
vector< SLMaterial * > SLVMaterial
STL vector of material pointers.
Definition: SLMaterial.h:274
Class for benchmark mass animation test scene.
void registerAssetsToLoad(SLAssetLoader &al) override
All assets the should be loaded in parallel must be registered in here.
void assemble(SLAssetManager *am, SLSceneView *sv) override
After parallel loading of the assets the scene gets assembled in here.
SLNode * RotatingSpheres(SLAssetManager *am, SLScene *s, SLint depth, SLfloat x, SLfloat y, SLfloat z, SLfloat scale, SLuint resolution, SLVMaterial &mat)
Creates a recursive rotating sphere group used for performance test.
Toplevel holder of the assets meshes, materials, textures and shaders.
SLNode represents a node in a hierarchical scene graph.
Definition: SLNode.h:147
The SLScene class represents the top level instance holding the scene structure.
Definition: SLScene.h:47
SceneView class represents a dynamic real time 3D view onto the scene.
Definition: SLSceneView.h:69