Nugget
Loading...
Searching...
No Matches
Macros
texture-fixture-phase17.h File Reference
#include "raster-helpers.h"
#include "texture-fixtures.h"
Include dependency graph for texture-fixture-phase17.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEX17_TX   11u
 
#define TEX17_TY   0u
 
#define TEX17_VRAM_BASE_X   (TEX17_TX * 64) /* 704 */
 
#define TEX17_VRAM_BASE_Y   (TEX17_TY * 256) /* 0 */
 
#define TEX17_WIDTH   32 /* texels per row */
 
#define TEX17_HEIGHT   32 /* rows */
 
#define TEX17_TPAGE   texpageField(TEX17_TX, TEX17_TY, 0, 2)
 
#define TEX17_CLUT_FIELD   0u /* 15-bit direct ignores CLUT */
 
#define PHASE17_ASSERT_PIXEL_EQ(expected, x_, y_)
 
#define PHASE17_ASSERT_PIXEL_UNTOUCHED(x_, y_)    PHASE17_ASSERT_PIXEL_EQ(RASTER_SENTINEL, (x_), (y_))
 

Macro Definition Documentation

◆ PHASE17_ASSERT_PIXEL_EQ

#define PHASE17_ASSERT_PIXEL_EQ (   expected,
  x_,
  y_ 
)
Value:
do { \
uint16_t _aval = rasterReadPixel((int16_t)(x_), (int16_t)(y_)); \
cester_assert_uint_eq((unsigned)(expected), (unsigned)_aval); \
} while (0)

◆ PHASE17_ASSERT_PIXEL_UNTOUCHED

#define PHASE17_ASSERT_PIXEL_UNTOUCHED (   x_,
  y_ 
)     PHASE17_ASSERT_PIXEL_EQ(RASTER_SENTINEL, (x_), (y_))

◆ TEX17_CLUT_FIELD

#define TEX17_CLUT_FIELD   0u /* 15-bit direct ignores CLUT */

◆ TEX17_HEIGHT

#define TEX17_HEIGHT   32 /* rows */

◆ TEX17_TPAGE

#define TEX17_TPAGE   texpageField(TEX17_TX, TEX17_TY, 0, 2)

◆ TEX17_TX

#define TEX17_TX   11u

◆ TEX17_TY

#define TEX17_TY   0u

◆ TEX17_VRAM_BASE_X

#define TEX17_VRAM_BASE_X   (TEX17_TX * 64) /* 704 */

◆ TEX17_VRAM_BASE_Y

#define TEX17_VRAM_BASE_Y   (TEX17_TY * 256) /* 0 */

◆ TEX17_WIDTH

#define TEX17_WIDTH   32 /* texels per row */