MCPcopy Create free account
hub / github.com/carbonengine/trinity / Tr2Sprite2dScene

Method Tr2Sprite2dScene

trinity/Sprite2d/Tr2Sprite2dScene.cpp:58–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56static const unsigned int IB_ALIGNMENT = 16;
57
58Tr2Sprite2dScene::Tr2Sprite2dScene( IRoot* lockobj ) :
59 PARENTLOCK( m_children ),
60 PARENTLOCK( m_background ),
61 PARENTLOCK( m_curveSets ),
62 m_display( true ),
63 m_spriteEffect( TR2_SFX_FILL ),
64 m_blendMode( TR2_SBM_NONE ),
65 m_spriteTarget( Tr2SpriteTarget::COLOR ),
66 m_glowBrightness( 1.f ),
67 m_numTexturesUsed( 0 ),
68 m_isAntiAliased( false ),
69 m_translation( 0.0f, 0.0f, 0.0f ),
70 m_rotation( 0.0f, 0.0f, 0.0f, 1.0f ),
71 m_scaling( 1.0f, 1.0f, 1.0f ),
72 m_depth( 0.0f ),
73 m_depthMin( 0.0f ),
74 m_depthMax( 0.0f ),
75 m_displayWidth( 1.0f ),
76 m_displayHeight( 1.0f ),
77 m_pickState( TR2_SPS_ON ),
78 m_backgroundColor( 0x000000ff ),
79 m_color( 1.0f, 1.0f, 1.0f, 1.0f ),
80 m_outlineColor( 0.0f, 0.0f, 0.0f, 1.0f ),
81 m_outlineThreshold( 0.0f ),
82 m_accumulatedAlpha( 1.0f ),
83 m_drawWireFrame( false ),
84 m_clearBackground( false ),
85 m_clearFinishedCurveSets( false ),
86 m_transformStack( NULL ),
87 m_depthStack( NULL ),
88 m_clipStack( NULL ),
89 m_ignoreClip( false ),
90 m_currentVertexData( NULL ),
91 m_currentIndexData( NULL ),
92 m_vertexDecl( Tr2EffectStateManager::UNINITIALIZED_DECLARATION ),
93 m_vertexCount( 0 ),
94 m_indexCount( 0 ),
95 m_isFullscreen( false ),
96 m_is2dRender( true ),
97 m_is2dPick( true ),
98 m_is2dRenderContext( true ),
99 m_stackOfStacks( "Tr2Sprite2dScene/m_stackOfStacks" ),
100 m_defaultTextureFlash( 0 ),
101 m_defaultTextureUpdates( false ),
102 m_transformCurrent( 0 ),
103 m_itemsRendered( 0 ),
104 m_maxItemsToRender( 0xffffffff ),
105 m_drawCallsRendered( 0 ),
106 m_maxDrawCallsToRender( 0xffffffff ),
107 m_captureDisplayList( nullptr ),
108 m_preCaptureVertexData( nullptr ),
109 m_preCaptureIndexData( nullptr ),
110 m_captureVertexDataSize( 0 ),
111 m_captureVertexDataCapacity( 0 ),
112 m_captureIndexDataSize( 0 ),
113 m_captureIndexDataCapacity( 0 ),
114 m_captureStartIndex( 0 ),
115 m_viewportSizeVar( "UIViewportSize", Vector4( 0.0f, 0.0f, 0.0f, 0.0f ) ),

Callers

nothing calls this directly

Calls 6

CreateInstanceMethod · 0.80
SetEffectPathNameMethod · 0.80
FindAtlasMethod · 0.80
AddAtlasMethod · 0.80
Vector4Class · 0.50
RegisterMethod · 0.45

Tested by

no test coverage detected