Fixed Android ifdef for log

This commit is contained in:
n00b87
2025-11-25 05:38:12 -06:00
parent dd6de7875e
commit 606d74fd39
11 changed files with 82 additions and 19 deletions

View File

@@ -19,7 +19,7 @@
hinge&nbsp;=&nbsp;CreateHingeConstraint<b>(</b>actorA,&nbsp;frameA,&nbsp;<span class="rc_keyword">true</span><b>)</b>&nbsp;<br> hinge&nbsp;=&nbsp;CreateHingeConstraint<b>(</b>actorA,&nbsp;frameA,&nbsp;<span class="rc_keyword">true</span><b>)</b>&nbsp;<br>
</code></p> </code></p>
<p> <p>
Note: It is recommended to use CreateSlideConstraintEx() in most cases Note: It is recommended to use CreateHingeConstraintEx() in most cases
</p> </p>
<br><p>Related: <br><p>Related:
<a href="createhingeconstraintex.html">CreateHingeConstraintEx</a> <a href="createhingeconstraintex.html">CreateHingeConstraintEx</a>

View File

@@ -7,7 +7,7 @@
</head> </head>
<body> <body>
<p><h2>function CreateSprite( img ) </h2></p> <p><h2>function CreateSprite( img, frame_w, frame_h ) </h2></p>
<p> <p>
This function returns a new sprite which you can place in a variable for use in your program. This function returns a new sprite which you can place in a variable for use in your program.
</p> </p>

View File

@@ -9,6 +9,9 @@
<body> <body>
<p><h2>Function GetSpriteAlpha(sprite) </h2></p> <p><h2>Function GetSpriteAlpha(sprite) </h2></p>
<p> <p>
Returns the alpha value of a sprite
</p>
<p>
</body> </body>
</html> </html>

View File

@@ -143,7 +143,7 @@
</p> </p>
<ul> <ul>
<li> <li>
Type - The type of layer selected. There are 4 types of layers: sprite, tile, canvas 2d, and canvas 3d. Type - The type of layer selected. There are 5 types of layers: sprite, tile, isometric tile, canvas 2d, and canvas 3d.
</li> </li>
<li> <li>
Name - The name of the layer Name - The name of the layer
@@ -161,6 +161,26 @@
<p> <p>
</p> </p>
</p> </p>
<p>
<p>#5 - Sprite Layers have extra settings that can be changed.
</p>
<ul>
<li>
Sprite Grid - Grid type can be either SQUARE or ISOMETRIC and determines how sprites move and snap when snap tile movement is enabled.
</li>
<li>
Sort By - This setting will override SpriteZ values and determines the priority sprites are rendered in
</li>
<li>
Order - This determines whether the priority set by Sort By is in ascending or descending order
</li>
<li>
Shape Data - You can use this to have the editor generate the shapes when generating code or just export the shape data so you can handle collision yourself
</li>
</ul>
<p>
</p>
</p>
<p> <p>
<br> <h2>Editor Settings</h2> <br> <h2>Editor Settings</h2>
</p> </p>
@@ -206,6 +226,9 @@
<p> <p>
These tools are only usable when a tile layer is selected. These tools are only usable when a tile layer is selected.
</p> </p>
<p>
NOTE: There is a subset of these tools available on sprite layers. The sprite layer tools will create a sprite with the selected tiles.
</p>
<p><img src="images/nirvana_tilemap_tools.png" ></p> <p><img src="images/nirvana_tilemap_tools.png" ></p>
<p> <p>
<p>#1 - Tools <p>#1 - Tools

View File

@@ -12,10 +12,10 @@
Sets the constant value of an FX material Sets the constant value of an FX material
</p> </p>
<p> <p>
NOTE: Each constant can ve of type Float, Vec2, Vec3, or Vec4. The ones listed as defined are set internally by the runtime. NOTE: Each constant can be of type Float, Vec2, Vec3, or Vec4. The ones listed as defined are set internally by the runtime.
</p> </p>
<p> <p>
<b>FX_MATERIAL_TYPE_NORMAL_BLEND</b> Possible Constants <b>FX_MATERIAL_TYPE_NORMAL_BLEND</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -23,7 +23,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_REFRACTION</b> Possible Constants <b>FX_MATERIAL_TYPE_REFRACTION</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -49,7 +49,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_REFRACTION2</b> Possible Constants <b>FX_MATERIAL_TYPE_REFRACTION2</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -57,7 +57,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_GOOCH</b> Possible Constants <b>FX_MATERIAL_TYPE_GOOCH</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -77,7 +77,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_PLASTIC</b> Possible Constants <b>FX_MATERIAL_TYPE_PLASTIC</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -88,7 +88,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_TANGENT</b> Possible Constants <b>FX_MATERIAL_TYPE_TANGENT</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -99,7 +99,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_SPEAKER</b> Possible Constants <b>FX_MATERIAL_TYPE_SPEAKER</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -128,7 +128,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_PHONG_TEXTURE</b> Possible Constants <b>FX_MATERIAL_TYPE_PHONG_TEXTURE</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -151,7 +151,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_STYLE</b> Possible Constants <b>FX_MATERIAL_TYPE_STYLE</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -159,7 +159,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_STYLE2</b> Possible Constants <b>FX_MATERIAL_TYPE_STYLE2</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -167,7 +167,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_STYLE3</b> Possible Constants <b>FX_MATERIAL_TYPE_STYLE3</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>
@@ -175,7 +175,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<b>FX_MATERIAL_TYPE_STYLE4</b> Possible Constants <b>FX_MATERIAL_TYPE_STYLE4</b><br> Possible Constants
</p> </p>
<ul> <ul>
<li> <li>

View File

@@ -9,6 +9,9 @@
<body> <body>
<p><h2>Sub SetSpriteAlpha(sprite, alpha) </h2></p> <p><h2>Sub SetSpriteAlpha(sprite, alpha) </h2></p>
<p> <p>
Sets the alpha value of a sprite
</p>
<p>
</body> </body>
</html> </html>

View File

@@ -9,6 +9,9 @@
<body> <body>
<p><h2>Sub SetSpriteColorMod(sprite, color) </h2></p> <p><h2>Sub SetSpriteColorMod(sprite, color) </h2></p>
<p> <p>
Sets the color modulation of a sprite.
</p>
<p>
</body> </body>
</html> </html>

View File

@@ -9,6 +9,9 @@
<body> <body>
<p><h2>Function SpriteAnimationIsPlaying(sprite) </h2></p> <p><h2>Function SpriteAnimationIsPlaying(sprite) </h2></p>
<p> <p>
Returns true if there is an animation playing on the sprite
</p>
<p>
</body> </body>
</html> </html>

View File

@@ -9,6 +9,9 @@
<body> <body>
<p><h2>Function SpriteExists(sprite) </h2></p> <p><h2>Function SpriteExists(sprite) </h2></p>
<p> <p>
Returns true if the sprite id is a valid sprite id
</p>
<p>
</body> </body>
</html> </html>

View File

@@ -143,7 +143,7 @@
</p> </p>
<ul> <ul>
<li> <li>
Type - The type of layer selected. There are 4 types of layers: sprite, tile, canvas 2d, and canvas 3d. Type - The type of layer selected. There are 5 types of layers: sprite, tile, isometric tile, canvas 2d, and canvas 3d.
</li> </li>
<li> <li>
Name - The name of the layer Name - The name of the layer
@@ -161,6 +161,26 @@
<p> <p>
</p> </p>
</p> </p>
<p>
<p>#5 - Sprite Layers have extra settings that can be changed.
</p>
<ul>
<li>
Sprite Grid - Grid type can be either SQUARE or ISOMETRIC and determines how sprites move and snap when snap tile movement is enabled.
</li>
<li>
Sort By - This setting will override SpriteZ values and determines the priority sprites are rendered in
</li>
<li>
Order - This determines whether the priority set by Sort By is in ascending or descending order
</li>
<li>
Shape Data - You can use this to have the editor generate the shapes when generating code or just export the shape data so you can handle collision yourself
</li>
</ul>
<p>
</p>
</p>
<p> <p>
<br> <h2>Editor Settings</h2> <br> <h2>Editor Settings</h2>
</p> </p>
@@ -206,6 +226,9 @@
<p> <p>
These tools are only usable when a tile layer is selected. These tools are only usable when a tile layer is selected.
</p> </p>
<p>
NOTE: There is a subset of these tools available on sprite layers. The sprite layer tools will create a sprite with the selected tiles.
</p>
<p><img src="images/nirvana_tilemap_tools.png" ></p> <p><img src="images/nirvana_tilemap_tools.png" ></p>
<p> <p>
<p>#1 - Tools <p>#1 - Tools

View File

@@ -10,9 +10,11 @@
#if defined(RC_ANDROID) || defined(RC_WINDOWS) #if defined(RC_ANDROID) || defined(RC_WINDOWS)
#include <irrlicht.h> #include <irrlicht.h>
#include <btBulletDynamicsCommon.h> #include <btBulletDynamicsCommon.h>
#include <android/log.h>
#define LOGE(TAG, ...) __android_log_print(ANDROID_LOG_ERROR , TAG,__VA_ARGS__) #if defined(RC_ANDROID)
#include <android/log.h>
#define LOGE(TAG, ...) __android_log_print(ANDROID_LOG_ERROR , TAG,__VA_ARGS__)
#endif // defined
#else #else
#include <irrlicht.h> #include <irrlicht.h>