SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
This file has the main function of the demo app of SLProject. More...
#include <App.h>
#include <AppCommon.h>
#include <AppDemoGui.h>
#include <AppDemoSceneView.h>
#include <AppDemoSceneID.h>
#include <SLGLState.h>
#include <SLEnums.h>
#include <CVCapture.h>
#include <AppDemoScene2Dand3DText.h>
#include <AppDemoSceneAnimNode.h>
#include <AppDemoSceneAnimNodeMass.h>
#include <AppDemoSceneAnimNodeMass2.h>
#include <AppDemoSceneAnimSkinned.h>
#include <AppDemoSceneAnimSkinnedMass.h>
#include <AppDemoSceneAnimSkinnedMass2.h>
#include <AppDemoSceneEmpty.h>
#include <AppDemoSceneErlebARBielBFH.h>
#include <AppDemoSceneErlebARAugustaTmpTht.h>
#include <AppDemoSceneErlebARAventicumCigognier.h>
#include <AppDemoSceneErlebARAventicumTheater.h>
#include <AppDemoSceneErlebARAventicumAmphitheater.h>
#include <AppDemoSceneErlebARBernChristoffel.h>
#include <AppDemoSceneErlebARSutz.h>
#include <AppDemoSceneFigure.h>
#include <AppDemoSceneFrustum.h>
#include <AppDemoSceneGLTF.h>
#include <AppDemoSceneJansUniverse.h>
#include <AppDemoSceneMeshLoad.h>
#include <AppDemoSceneMinimal.h>
#include <AppDemoSceneLargeModel.h>
#include <AppDemoSceneLevelOfDetail.h>
#include <AppDemoSceneLotsOfNodes.h>
#include <AppDemoSceneParticleComplexFire.h>
#include <AppDemoSceneParticleDustStorm.h>
#include <AppDemoSceneParticleFountain.h>
#include <AppDemoSceneParticleMany.h>
#include <AppDemoSceneParticleRingOfFire.h>
#include <AppDemoSceneParticleSimple.h>
#include <AppDemoSceneParticleSun.h>
#include <AppDemoScenePointClouds.h>
#include <AppDemoSceneRevolver.h>
#include <AppDemoSceneRTDoF.h>
#include <AppDemoSceneRTMuttenzerBox.h>
#include <AppDemoSceneRTLens.h>
#include <AppDemoSceneRTSpheres.h>
#include <AppDemoSceneRobot.h>
#include <AppDemoSceneSuzanne.h>
#include <AppDemoSceneShaderBlinn.h>
#include <AppDemoSceneShaderBump.h>
#include <AppDemoSceneShaderCook.h>
#include <AppDemoSceneShaderEarth.h>
#include <AppDemoSceneShaderIBL.h>
#include <AppDemoSceneShaderParallax.h>
#include <AppDemoSceneShaderSkybox.h>
#include <AppDemoSceneShaderWave.h>
#include <AppDemoSceneShadowBasic.h>
#include <AppDemoSceneShadowCascaded.h>
#include <AppDemoSceneShadowLightTypes.h>
#include <AppDemoSceneShadowLightSpot.h>
#include <AppDemoSceneShadowLightPoint.h>
#include <AppDemoSceneTextureBlend.h>
#include <AppDemoSceneTextureCompression.h>
#include <AppDemoSceneTextureFilter.h>
#include <AppDemoSceneVideoSensorAR.h>
#include <AppDemoSceneVideoTexture.h>
#include <AppDemoSceneVideoTrackAruco.h>
#include <AppDemoSceneVideoTrackChessboard.h>
#include <AppDemoSceneVideoTrackFace.h>
#include <AppDemoSceneVideoTrackFeatures.h>
#include <AppDemoSceneVideoTrackMediapipe.h>
#include <AppDemoSceneVideoTrackWAI.h>
#include <AppDemoSceneVolumeRayCast.h>
#include <AppDemoSceneVolumeRayCastLighted.h>
#include <AppDemoSceneZFighting.h>
#include <CVTracked.h>
Go to the source code of this file.
Functions | |
bool | onUpdateVideo () |
Implements the update per frame for video update and feature tracking. More... | |
static SLSceneView * | createSceneView (SLScene *scene, int curDPI, SLInputManager &inputManager) |
static SLScene * | createScene (SLSceneID sceneID) |
static void | onBeforeSceneDelete (SLSceneView *sv, SLScene *s) |
static void | onBeforeSceneLoad (SLSceneView *sv, SLScene *s) |
static void | onBeforeSceneAssembly (SLSceneView *sv, SLScene *s) |
static void | onAfterSceneAssembly (SLSceneView *sv, SLScene *s) |
static SLbool | onUpdate (SLSceneView *sv) |
int | SL_MAIN_FUNCTION (int argc, char *argv[]) |
Variables | |
SLGLTexture * | gVideoTexture |
CVTracked * | gVideoTracker |
SLNode * | gVideoTrackedNode |
This file has the main function of the demo app of SLProject.
An App::Config is set and then passed to the run function defined App.h. Beside this is contains the callback functions for the scene creation. See App.h for their typedef. For more info on how to create a new app with SLProject see: https://github.com/cpvrlab/SLProject4/wiki/Creating-a-New-App For more info about App framework see: https://cpvrlab.github.io/SLProject4/app-framework.html
Definition in file AppDemoMain.cpp.
Definition at line 117 of file AppDemoMain.cpp.
|
static |
Definition at line 109 of file AppDemoMain.cpp.
|
static |
Definition at line 244 of file AppDemoMain.cpp.
|
static |
Definition at line 239 of file AppDemoMain.cpp.
|
static |
Definition at line 220 of file AppDemoMain.cpp.
|
static |
Definition at line 234 of file AppDemoMain.cpp.
|
static |
Definition at line 266 of file AppDemoMain.cpp.
bool onUpdateVideo | ( | ) |
Implements the update per frame for video update and feature tracking.
This routine is called once per frame before any other update within the the main rendering loop (see: AppDemoMainGLFW::onPaint or GLES3View::onDrawFrame). See the documentation within SLCVTracked and in all of its inheritants.
Definition at line 226 of file AppDemoVideo.cpp.
int SL_MAIN_FUNCTION | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 285 of file AppDemoMain.cpp.
|
extern |
Global pointer for the video texture defined in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine
Definition at line 32 of file AppDemoVideo.cpp.
|
extern |
Global pointer to a node that from witch the gVideoTracker changes the pose. it gets updated in the following onUpdateTracking routine
Definition at line 42 of file AppDemoVideo.cpp.
|
extern |
Global pointer for a gVideoTracker that is set in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine
Definition at line 37 of file AppDemoVideo.cpp.