• R/O
  • SSH
  • HTTPS

shaman: Commit


Commit MetaInfo

Révision70 (tree)
l'heure2012-11-25 21:27:28
Auteurshom5xg

Message de Log

implement the NO-RENDERING dip

Change Summary

Modification

--- trunk/release/W32_DirectX/media/debug_dip.ini (revision 69)
+++ trunk/release/W32_DirectX/media/debug_dip.ini (revision 70)
@@ -8,9 +8,18 @@
88
99
1010
11+
12+
13+
14+
15+
16+
17+
18+
1119 [SYSTEM]
12-DRAW_FPS=1
13-PROC_ONLY_FOCUSING=0 +PAUSE_ALL_UPDATE=0
20+PROC_ONLY_FOCUSING=0
21+DRAW_FPS=1
1422
1523
@@ -18,9 +27,18 @@
1827
1928
2029
30+
31+
32+
33+
34+
35+
36+
37+
2138 [GRAPHIC]
22-NOT_RENDER_MODEL=0
39+NOT_RENDER_ENTITY=0
2340 NOT_RENDER_FRONTEND=0
41+NOT_RENDER_STAGE=0
2442 NOT_RENDER_PARTICLE=0
2543
@@ -29,6 +47,14 @@
2947
3048
3149
50+
51+
52+
53+
54+
55+
56+
57+
3258 [SOUND]
3359 MUTE_BGM=0
3460 MUTE_SE=0 Index: trunk/program/src/service/service_frontend.cpp
3561===================================================================
36--- trunk/program/src/service/service_frontend.cpp (revision 69)
62+++ trunk/program/src/service/service_frontend.cpp (revision 70)
@@ -47,9 +47,14 @@
4747
4848 void cservice_frontend::Draw()
4949 {
50- foreach( p_frontend_map_element_t ele, m_p_frontend_map )
50+#ifdef _DEBUG
51+ if( !IsDip( eDebugDipItem_NOT_RENDER_FRONTEND ) )
52+#endif
5153 {
52- ( ele.second )->Draw();
54+ foreach( p_frontend_map_element_t ele, m_p_frontend_map )
55+ {
56+ ( ele.second )->Draw();
57+ }
5358 }
5459 }
5560
--- trunk/program/src/service/service_stage.cpp (revision 69)
+++ trunk/program/src/service/service_stage.cpp (revision 70)
@@ -57,9 +57,14 @@
5757
5858 void CIMPL::Draw()
5959 {
60- if( m_p_stage )
60+#ifdef _DEBUG
61+ if( !IsDip( eDebugDipItem_NOT_RENDER_STAGE ) )
62+#endif
6163 {
62- m_p_stage->Draw();
64+ if( m_p_stage )
65+ {
66+ m_p_stage->Draw();
67+ }
6368 }
6469 }
6570
--- trunk/program/src/service/service_entity.cpp (revision 69)
+++ trunk/program/src/service/service_entity.cpp (revision 70)
@@ -101,55 +101,59 @@
101101
102102 void cservice_entity::Draw()
103103 {
104- foreach( entity_map_element_t& e, m_entity_map )
104+#ifdef _DEBUG
105+ if( !IsDip( eDebugDipItem_NOT_RENDER_ENTITY ) )
106+#endif
105107 {
106- if( e.is_valid() )
108+ foreach( entity_map_element_t& e, m_entity_map )
107109 {
108- m_entity_draw_list.push_back( e );
110+ if( e.is_valid() )
111+ {
112+ m_entity_draw_list.push_back( e );
113+ }
109114 }
110- }
111115
112- while( !( m_entity_draw_list.empty() ) )
113- {
114- centity_base* p_entity_deepest = NULL;
116+ while( !( m_entity_draw_list.empty() ) )
117+ {
118+ centity_base* p_entity_deepest = NULL;
115119
116- foreach( entity_map_element_t& e, m_entity_draw_list )
117- {
118- if( p_entity_deepest )
120+ foreach( entity_map_element_t& e, m_entity_draw_list )
119121 {
120- vec3f v3_pos_deepest, v3_pos_cur;
121- p_entity_deepest->GetPos( v3_pos_deepest );
122- e.p_entity->GetPos( v3_pos_cur );
122+ if( p_entity_deepest )
123+ {
124+ vec3f v3_pos_deepest, v3_pos_cur;
125+ p_entity_deepest->GetPos( v3_pos_deepest );
126+ e.p_entity->GetPos( v3_pos_cur );
123127
124- if( v3_pos_deepest.z > v3_pos_cur.z )
128+ if( v3_pos_deepest.z > v3_pos_cur.z )
129+ {
130+ p_entity_deepest = e.p_entity;
131+ }
132+ }
133+ else
125134 {
126135 p_entity_deepest = e.p_entity;
127136 }
128137 }
129- else
138+
139+ if( p_entity_deepest )
130140 {
131- p_entity_deepest = e.p_entity;
141+ p_entity_deepest->Draw();
132142 }
133- }
134143
135- if( p_entity_deepest )
136- {
137- p_entity_deepest->Draw();
138- }
139-
140- entity_draw_list_t::iterator it = m_entity_draw_list.begin();
141- const entity_draw_list_t::iterator it_end = m_entity_draw_list.end();
142- for( ; it != it_end; ++it )
143- {
144- if( it->p_entity == p_entity_deepest )
144+ entity_draw_list_t::iterator it = m_entity_draw_list.begin();
145+ const entity_draw_list_t::iterator it_end = m_entity_draw_list.end();
146+ for( ; it != it_end; ++it )
145147 {
146- m_entity_draw_list.erase( it );
148+ if( it->p_entity == p_entity_deepest )
149+ {
150+ m_entity_draw_list.erase( it );
147151
148- break;
152+ break;
153+ }
149154 }
150155 }
151- }
152-
156+ }
153157 }
154158
155159 u32 cservice_entity::Create( eEntity e_entity, vec2f v2_pos_init )
Afficher sur ancien navigateur de dépôt.