Dali 3D User Interface Engine
Macros | Functions | Variables
utc-Dali-Internal-FrustumCulling.cpp File Reference
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
#include <dali/devel-api/object/property-buffer.h>
#include <dali/devel-api/rendering/geometry.h>
#include <dali/devel-api/rendering/material.h>
#include <dali/devel-api/rendering/renderer.h>
#include <dali/devel-api/rendering/sampler.h>
#include <dali/devel-api/rendering/shader.h>
Include dependency graph for utc-Dali-Internal-FrustumCulling.cpp:

Go to the source code of this file.

Macros

#define MAKE_SHADER(A)   #A
 

Functions

Geometry CreateGeometry ()
 
Actor CreateMeshActorToStage (TestApplication &application, Vector3 parentOrigin=ParentOrigin::CENTER, Vector3 anchorPoint=AnchorPoint::CENTER, Shader::ShaderHints shaderHints=Shader::HINT_NONE)
 
bool GetCameraDepths (TestApplication &application, float &nearPlane, float &farPlane, float &cameraDepth)
 
int UtcFrustumCullN (void)
 
int UtcFrustumLeftCullP (void)
 
int UtcFrustumLeftCullN (void)
 
int UtcFrustumRightCullP (void)
 
int UtcFrustumRightCullN (void)
 
int UtcFrustumTopCullP (void)
 
int UtcFrustumTopCullN (void)
 
int UtcFrustumBottomCullP (void)
 
int UtcFrustumBottomCullN (void)
 
int UtcFrustumNearCullP (void)
 
int UtcFrustumNearCullN (void)
 
int UtcFrustumFarCullP (void)
 
int UtcFrustumFarCullN (void)
 
int UtcFrustumCullDisabledP (void)
 

Variables

const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER
 

Macro Definition Documentation

#define MAKE_SHADER (   A)    #A

Definition at line 32 of file utc-Dali-Internal-FrustumCulling.cpp.

Function Documentation

Geometry CreateGeometry ( )
Actor CreateMeshActorToStage ( TestApplication application,
Vector3  parentOrigin = ParentOrigin::CENTER,
Vector3  anchorPoint = AnchorPoint::CENTER,
Shader::ShaderHints  shaderHints = Shader::HINT_NONE 
)
bool GetCameraDepths ( TestApplication application,
float &  nearPlane,
float &  farPlane,
float &  cameraDepth 
)
int UtcFrustumBottomCullN ( void  )
int UtcFrustumBottomCullP ( void  )
int UtcFrustumCullDisabledP ( void  )
int UtcFrustumCullN ( void  )
int UtcFrustumFarCullN ( void  )
int UtcFrustumFarCullP ( void  )
int UtcFrustumLeftCullN ( void  )
int UtcFrustumLeftCullP ( void  )
int UtcFrustumNearCullN ( void  )
int UtcFrustumNearCullP ( void  )
int UtcFrustumRightCullN ( void  )
int UtcFrustumRightCullP ( void  )
int UtcFrustumTopCullN ( void  )
int UtcFrustumTopCullP ( void  )

Variable Documentation

const char* FRAGMENT_SHADER
Initial value:
uniform Sampler2D sTexture;
varying mediump vec2 vTexCoord;
void main()
{
gl_FragColor = texture2D( sTexture, vTexCoord );
}
)

Definition at line 51 of file utc-Dali-Internal-FrustumCulling.cpp.

Referenced by Dali::Toolkit::Internal::CreateBubbleShader(), CreateMeshActorToStage(), Dali::Toolkit::Internal::NPatchRenderer::CreateShader(), Dali::Toolkit::Internal::SuperBlurView::OnInitialize(), and Dali::Toolkit::Internal::ImageRenderer::SetNativeFragmentShaderCode().

const char* VERTEX_SHADER
Initial value:
attribute mediump vec2 aPosition;
attribute mediump vec2 aTexCoord;
uniform mediump mat4 uMvpMatrix;
uniform mediump vec3 uSize;
varying mediump vec2 vTexCoord;
void main()
{
mediump vec4 vertexPosition = vec4(aPosition, 0.0, 1.0);
vertexPosition.xyz *= uSize;
vertexPosition = uMvpMatrix * vertexPosition;
vTexCoord = aTexCoord;
gl_Position = vertexPosition;
}
)

Definition at line 34 of file utc-Dali-Internal-FrustumCulling.cpp.

Referenced by Dali::Toolkit::Internal::CreateBubbleShader(), CreateMeshActorToStage(), Dali::Toolkit::Internal::NPatchRenderer::CreateShader(), and Dali::Toolkit::Internal::CubeTransitionEffect::OnStageConnection().

Dali Docs Home
Read more about Dali