Add Pokitto frontend
This commit is contained in:
parent
dae47de5f9
commit
e838d76e72
6 changed files with 54 additions and 25 deletions
32
renderer.h
32
renderer.h
|
@ -29,9 +29,15 @@
|
|||
#define S3L_RESOLUTION_X LCR_EFFECTIVE_RESOLUTION_X
|
||||
#define S3L_RESOLUTION_Y LCR_EFFECTIVE_RESOLUTION_Y
|
||||
#define S3L_PIXEL_FUNCTION _LCR_pixelFunc3D
|
||||
#define S3L_PERSPECTIVE_CORRECTION 2
|
||||
#define S3L_NEAR_CROSS_STRATEGY 1
|
||||
#define S3L_Z_BUFFER 1
|
||||
|
||||
#ifndef S3L_PERSPECTIVE_CORRECTION
|
||||
#define S3L_PERSPECTIVE_CORRECTION 2
|
||||
#endif
|
||||
|
||||
#ifndef S3L_NEAR_CROSS_STRATEGY
|
||||
#define S3L_NEAR_CROSS_STRATEGY 1
|
||||
#endif
|
||||
|
||||
#define LCR_FONT_PIXEL_SIZE (1 + LCR_EFFECTIVE_RESOLUTION_X / 512)
|
||||
#define LCR_ANIMATE_CAR (LCR_SETTING_CAR_ANIMATION_SUBDIVIDE != 0)
|
||||
#define LCR_ANT_RESOLUTION (LCR_EFFECTIVE_RESOLUTION_Y <= 110)
|
||||
|
@ -41,9 +47,16 @@
|
|||
#define S3L_PERSPECTIVE_CORRECTION 0
|
||||
#define S3L_NEAR_CROSS_STRATEGY 1
|
||||
#define S3L_FLAT 1
|
||||
#undef S3L_Z_BUFFER
|
||||
#define S3L_Z_BUFFER 2 // simplified
|
||||
#define S3L_MAX_TRIANGES_DRAWN 64 // lower, in case sorting was turned on
|
||||
|
||||
#ifndef S3L_Z_BUFFER
|
||||
#define S3L_Z_BUFFER 2 // simplified
|
||||
#endif
|
||||
|
||||
#ifndef S3L_MAX_TRIANGES_DRAWN
|
||||
#define S3L_MAX_TRIANGES_DRAWN 64 // lower, in case sorting was turned on
|
||||
#endif
|
||||
#else
|
||||
#define S3L_Z_BUFFER 1
|
||||
#endif
|
||||
|
||||
#define S3L_NEAR (10 * (S3L_F / 16)) // too low value will cause overflows
|
||||
|
@ -1041,8 +1054,15 @@ uint8_t _LCR_buildMapModel(void)
|
|||
if (
|
||||
LCR_renderer.mapModel.vertexCount >= LCR_SETTING_MAX_MAP_VERTICES - 16 ||
|
||||
LCR_renderer.mapModel.triangleCount >= LCR_SETTING_MAX_MAP_TRIANGLES - 16)
|
||||
{
|
||||
_LCR_cullHiddenMapTris();
|
||||
|
||||
if (LCR_renderer.mapModel.vertexCount >= LCR_SETTING_MAX_MAP_VERTICES - 16
|
||||
|| LCR_renderer.mapModel.triangleCount >= LCR_SETTING_MAX_MAP_TRIANGLES
|
||||
- 16)
|
||||
break; // didn't help, no need to continue
|
||||
}
|
||||
|
||||
for (int i = 0; i < blockShapeByteCount; ++i)
|
||||
{
|
||||
if (vi == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue