Skip to content

Commit c7605f1

Browse files
author
rodomac
committed
implemented engine debug mode
1 parent acda326 commit c7605f1

File tree

42 files changed

+44
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+44
-36
lines changed
2.79 KB
Binary file not shown.

PixFu.xcodeproj/xcuserdata/rodo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
endingColumnNumber = "9223372036854775807"
6565
startingLineNumber = "56"
6666
endingLineNumber = "56"
67-
landmarkName = "unknown"
68-
landmarkType = "0">
67+
landmarkName = "World::add(terrainConfig)"
68+
landmarkType = "7">
6969
</BreakpointContent>
7070
</BreakpointProxy>
7171
</Breakpoints>

build/Debug/PixFu.framework/Versions/A/Headers/core/LayerVao.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace Pix {
5656
class LayerVao {
5757

5858
static const std::string TAG;
59-
59+
6060
void init(Mesh_t &mesh);
6161

6262
protected:
@@ -97,6 +97,8 @@ namespace Pix {
9797

9898
public:
9999

100+
static GLenum DRAWMODE;
101+
100102
virtual ~LayerVao();
101103

102104
// called by the loop to update the surface

build/Debug/PixFu.framework/Versions/A/Headers/ext/world/WorldMeta.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ namespace Pix {
6666
}
6767
} Transformation_t;
6868

69+
typedef enum eWorldDebug { DEBUG_NONE, DEBUG_GRID, DEBUG_COLLISIONS, DEBUG_WIREFRAME } WorldDebug_t;
70+
6971
/**
7072
* World configuration object. It is used to instantiate the world class and
7173
* contains the root parameters: lighting, background ...
7274
*/
7375

7476
typedef struct sWorldConfig {
75-
77+
7678
/** global background color */
7779
const glm::vec3 backgroundColor = {0.8, 0.8, 1};
7880

@@ -82,6 +84,9 @@ namespace Pix {
8284
/** light color */
8385
const glm::vec3 lightColor = {0.8, 0.8, 0.93};
8486

87+
/** debug mode */
88+
const WorldDebug_t debugMode = DEBUG_NONE;
89+
8590
/** Perspective */
8691
const Perspective_t perspective = PERSP_FOV70;
8792

@@ -236,9 +241,6 @@ namespace Pix {
236241
*/
237242
const float scaleHeight = 0.1;
238243

239-
/** render wireframe grid (if world has a canvas enabled) */
240-
const bool wireframe = false;
241-
242244
/** use a provided mesh instead of loading one */
243245
const Static3DObject_t *staticMesh = nullptr;
244246

4.42 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

build/Debug/PixFu.framework/Versions/A/_CodeSignature/CodeResources

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@
279279
<dict>
280280
<key>hash</key>
281281
<data>
282-
6s1MCG3jC1uxKRoyHO+N81IFoFA=
282+
IkkbWNb7xGNfqr8S2OQgbAuNaNQ=
283283
</data>
284284
<key>hash2</key>
285285
<data>
286-
v0nnU4/QR1XLSxWM157iwXdKoXYMryls2SPDVo84VZU=
286+
2niqiSBhMR2dlSkR65Qc4N3S1j+ZxfztCXJGu1TzNTI=
287287
</data>
288288
</dict>
289289
<key>Headers/ext/world/Frustum.hpp</key>
80 Bytes
Binary file not shown.
328 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)