Neocore
Loading...
Searching...
No Matches
neocore.h File Reference
#include <DATlib.h>
#include <math.h>

Go to the source code of this file.

Data Structures

struct  Vec2int
 
struct  Vec2short
 
struct  Vec2byte
 
struct  Box
 
struct  GFX_Animated_Sprite
 
struct  GFX_Picture
 
struct  GFX_Animated_Sprite_Physic
 
struct  GFX_Picture_Physic
 
struct  GFX_Scroller
 
struct  Adpcm_player
 

Macros

#define SHRUNK_TABLE_PROP_SIZE   0x2fe
 
#define MANUALBOX   0
 
#define AUTOBOX   1
 
#define nc_shrunk_extract_x(value)   value >> 8
 
#define nc_shrunk_extract_y(value)   (BYTE)value
 
#define nc_wait_vbl()   waitVBlank();
 
#define nc_bitwise_division_2(value)   (value >> 1)
 
#define nc_bitwise_division_4(value)   (value >> 2)
 
#define nc_bitwise_division_8(value)   (value >> 3)
 
#define nc_bitwise_division_16(value)   (value >> 4)
 
#define nc_bitwise_division_32(value)   (value >> 5)
 
#define nc_bitwise_division_64(value)   (value >> 6)
 
#define nc_bitwise_division_128(value)   (value >> 7)
 
#define nc_bitwise_division_256(value)   (value >> 8)
 
#define nc_bitwise_multiplication_2(value)   (value << 1)
 
#define nc_bitwise_multiplication_4(value)   (value << 2)
 
#define nc_bitwise_multiplication_8(value)   (value << 3)
 
#define nc_bitwise_multiplication_16(value)   (value << 4)
 
#define nc_bitwise_multiplication_32(value)   (value << 5)
 
#define nc_bitwise_multiplication_64(value)   (value << 6)
 
#define nc_bitwise_multiplication_128(value)   (value << 7)
 
#define nc_bitwise_multiplication_256(value)   (value << 8)
 
#define nc_random(range)   rand() % range
 
#define nc_min(a, b)   ((a) < (b) ? (a) : (b))
 
#define nc_max(a, b)   ((a) > (b) ? (a) : (b))
 
#define nc_abs(num)   ((num) < 0 ? ~(num) + 1 : (num))
 
#define nc_negative(num)   -num
 
#define nc_fix(num)   num * 65536
 
#define nc_fix_to_int(num)   fixtoi(num)
 
#define nc_int_to_fix(num)   itofix(num)
 
#define nc_fix_add(num1, num2)   fadd(num1, num2)
 
#define nc_fix_sub(num1, num2)   fsub(num1, num2)
 
#define nc_fix_mul(num1, num2)   fmul(num1, num2)
 
#define nc_cos(num)   fcos(num)
 
#define nc_tan(num)   ftan(num)
 
#define nc_copy_box(box_src, box_dest)   memcpy(box_dest, box_src, sizeof(Box))
 
#define nc_stop_cdda()   nc_pause_cdda()
 
#define nc_get_frame_counter()   DAT_frameCounter
 

Typedefs

typedef struct Vec2int Vec2int
 
typedef struct Vec2short Vec2short
 
typedef struct Vec2byte Vec2byte
 
typedef struct Box Box
 
typedef struct GFX_Animated_Sprite GFX_Animated_Sprite
 
typedef struct GFX_Picture GFX_Picture
 
typedef struct GFX_Animated_Sprite_Physic GFX_Animated_Sprite_Physic
 
typedef struct GFX_Picture_Physic GFX_Picture_Physic
 
typedef struct GFX_Scroller GFX_Scroller
 
typedef struct Adpcm_player Adpcm_player
 

Enumerations

enum  Direction {
  NONE , UP , DOWN , LEFT ,
  RIGHT
}
 
enum  Sound_state { IDLE , PLAYING }
 

Functions

void nc_init_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, spriteInfo *spriteInfo, paletteInfo *paletteInfo)
 
void nc_init_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, spriteInfo *spriteInfo, paletteInfo *paletteInfo, short box_witdh, short box_height, short box_width_offset, short box_height_offset)
 
void nc_init_gfx_picture (GFX_Picture *gfx_picture, pictureInfo *pictureInfo, paletteInfo *paletteInfo)
 
void nc_init_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic, pictureInfo *pi, paletteInfo *pali, short box_witdh, short box_height, short box_width_offset, short box_height_offset, BOOL autobox_enabled)
 
void nc_init_gfx_scroller (GFX_Scroller *gfx_scroller, scrollerInfo *scrollerInfo, paletteInfo *paletteInfo)
 
void nc_display_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, short x, short y, WORD anim)
 
void nc_display_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, short x, short y, WORD anim)
 
void nc_display_gfx_picture (GFX_Picture *gfx_picture, short x, short y)
 
void nc_display_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic, short x, short y)
 
void nc_display_gfx_scroller (GFX_Scroller *gfx_scroller, short x, short y)
 
void nc_debug_paletteInfo (paletteInfo *palette, BOOL palCount, BOOL data)
 
void nc_init_display_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, spriteInfo *spriteInfo, paletteInfo *paletteInfo, short x, short y, WORD anim)
 
void nc_init_display_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, spriteInfo *spriteInfo, paletteInfo *paletteInfo, short x, short y, short box_witdh, short box_height, short box_width_offset, short box_height_offset, WORD anim)
 
void nc_init_display_gfx_picture (GFX_Picture *gfx_picture, pictureInfo *pictureInfo, paletteInfo *paletteInfo, short x, short y)
 
void nc_init_display_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic, pictureInfo *pictureInfo, paletteInfo *paletteInfo, short x, short y, short box_witdh, short box_height, short box_width_offset, short box_height_offset, BOOL autobox_enabled)
 
void nc_init_display_gfx_scroller (GFX_Scroller *gfx_scroller, scrollerInfo *scrollerInfo, paletteInfo *paletteInfo, short x, short y)
 
void nc_hide_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite)
 
void nc_hide_gfx_picture (GFX_Picture *gfx_picture)
 
void nc_hide_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic)
 
void nc_hide_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic)
 
void nc_show_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite)
 
void nc_show_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic)
 
void nc_show_gfx_picture (GFX_Picture *gfx_picture)
 
void nc_show_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic)
 
Vec2short nc_get_position_gfx_animated_sprite (GFX_Animated_Sprite gfx_animated_sprite)
 
Vec2short nc_get_position_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic gfx_animated_sprite_physic)
 
Vec2short nc_get_position_gfx_picture (GFX_Picture gfx_picture)
 
Vec2short nc_get_position_gfx_picture_physic (GFX_Picture_Physic gfx_picture_physic)
 
Vec2short nc_get_position_gfx_scroller (GFX_Scroller gfx_scroller)
 
void nc_set_position_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic, short x, short y)
 
void nc_set_position_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, short x, short y)
 
void nc_set_position_gfx_scroller (GFX_Scroller *gfx_scroller, short x, short y)
 
void nc_set_position_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, short x, short y)
 
void nc_set_position_gfx_picture (GFX_Picture *gfx_picture, short x, short y)
 
void nc_move_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic, short x_offset, short y_offset)
 
void nc_move_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, short x_offset, short y_offset)
 
void nc_move_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, short x_offset, short y_offset)
 
void nc_move_gfx_picture (GFX_Picture *gfx_picture, short x, short y)
 
void nc_move_gfx_scroller (GFX_Scroller *gfx_scroller, short x, short y)
 
void nc_shrunk_centroid_gfx_picture (GFX_Picture *gfx_picture, short center_x, short center_y, WORD shrunk_value)
 
void nc_set_animation_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite, WORD anim)
 
void nc_set_animation_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic, WORD anim)
 
void nc_update_animation_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite)
 
void nc_update_animation_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic)
 
void nc_destroy_gfx_scroller (GFX_Scroller *gfx_scroller)
 
void nc_destroy_gfx_picture (GFX_Picture *gfx_picture)
 
void nc_destroy_gfx_animated_sprite (GFX_Animated_Sprite *gfx_animated_sprite)
 
void nc_destroy_gfx_picture_physic (GFX_Picture_Physic *gfx_picture_physic)
 
void nc_destroy_gfx_animated_sprite_physic (GFX_Animated_Sprite_Physic *gfx_animated_sprite_physic)
 
void nc_init_gpu ()
 
void nc_clear_vram ()
 
void nc_update ()
 
DWORD nc_wait_vbl_max (WORD nb)
 
void nc_clear_sprite_index_table ()
 
WORD nc_get_max_free_sprite_index ()
 
WORD nc_get_max_sprite_index_used ()
 
void nc_destroy_palette (paletteInfo *paletteInfo)
 
void nc_clear_palette_index_table ()
 
WORD nc_get_max_free_palette_index ()
 
WORD nc_get_max_palette_index_used ()
 
WORD nc_get_shrunk_proportional_table (WORD index)
 
int nc_shrunk_centroid_get_translated_x (short centerPosX, WORD tileWidth, BYTE shrunkX)
 
int nc_shrunk_centroid_get_translated_y (short centerPosY, WORD tileHeight, BYTE shrunkY)
 
void nc_shrunk (WORD base_sprite, WORD max_width, WORD value)
 
WORD nc_shrunk_forge (BYTE xc, BYTE yc)
 
void nc_shrunk_addr (WORD addr, WORD shrunk_value)
 
WORD nc_shrunk_range (WORD addr_start, WORD addr_end, WORD shrunk_value)
 
char nc_sin (WORD index)
 
BYTE nc_collide_boxes (Box *box, Box *boxes[], BYTE box_max)
 
BOOL nc_collide_box (Box *box1, Box *box2)
 
void nc_init_box (Box *box, short width, short height, short widthOffset, short heightOffset)
 
void nc_update_box (Box *box, short x, short y)
 
void nc_update_mask (short x, short y, Vec2short vec[], Vec2short offset[], BYTE vector_max)
 
void nc_shrunk_box (Box *box, Box *bOrigin, WORD shrunkValue)
 
void nc_resize_box (Box *Box, short edge)
 
void nc_play_cdda (BYTE track)
 
void nc_pause_cdda ()
 
void nc_resume_cdda ()
 
void nc_stop_adpcm ()
 
void nc_set_joypad_edge_mode (BOOL actived)
 
void nc_update_joypad (BYTE id)
 
void nc_joypad_update (BYTE id)
 
BOOL nc_joypad_is_up (BYTE id)
 
BOOL nc_joypad_is_down (BYTE id)
 
BOOL nc_joypad_is_left (BYTE id)
 
BOOL nc_joypad_is_right (BYTE id)
 
BOOL nc_joypad_is_start (BYTE id)
 
BOOL nc_joypad_is_a (BYTE id)
 
BOOL nc_joypad_is_b (BYTE id)
 
BOOL nc_joypad_is_c (BYTE id)
 
BOOL nc_joypad_is_d (BYTE id)
 
void nc_debug_joypad (BYTE id)
 
DWORD nc_frame_to_second (DWORD frame)
 
DWORD nc_second_to_frame (DWORD second)
 
void nc_init_system ()
 
void nc_reset ()
 
Vec2short nc_get_relative_position (Box box, Vec2short world_coord)
 
void nc_pause (BOOL(*exitFunc)())
 
void nc_sleep (DWORD frame)
 
BOOL nc_each_frame (DWORD frame)
 
void nc_print (int x, int y, char *label)
 
WORD nc_free_ram_info ()
 
void nc_init_log ()
 
void nc_set_position_log (WORD _x, WORD _y)
 
WORD nc_log_info (char *txt)
 
void nc_log (char *message)
 
void nc_log_word (char *label, WORD value)
 
void nc_log_int (char *label, int value)
 
void nc_log_dword (char *label, DWORD value)
 
void nc_log_short (char *label, short value)
 
void nc_log_byte (char *label, BYTE value)
 
void nc_log_bool (char *label, BOOL value)
 
void nc_log_spriteInfo (char *label, spriteInfo *si)
 
void nc_log_box (char *label, Box *b)
 
void nc_log_pictureInfo (char *label, pictureInfo *pi)
 
void nc_log_vec2short (char *label, Vec2short vec2short)
 
void nc_init_adpcm ()
 
void nc_update_adpcm_player ()
 
void nc_push_remaining_frame_adpcm_player (DWORD frame)
 
Adpcm_playernc_get_adpcm_player ()
 
BOOL nc_vectors_collide (Box *box, Vec2short vec[], BYTE vector_max)
 
BOOL nc_vector_is_left (short x, short y, short v1x, short v1y, short v2x, short v2y)
 

Macro Definition Documentation

◆ AUTOBOX

#define AUTOBOX   1

Definition at line 18 of file neocore.h.

◆ MANUALBOX

#define MANUALBOX   0

Definition at line 17 of file neocore.h.

◆ nc_abs

#define nc_abs (   num)    ((num) < 0 ? ~(num) + 1 : (num))

Definition at line 383 of file neocore.h.

◆ nc_bitwise_division_128

#define nc_bitwise_division_128 (   value)    (value >> 7)

Definition at line 366 of file neocore.h.

◆ nc_bitwise_division_16

#define nc_bitwise_division_16 (   value)    (value >> 4)

Definition at line 363 of file neocore.h.

◆ nc_bitwise_division_2

#define nc_bitwise_division_2 (   value)    (value >> 1)

Definition at line 360 of file neocore.h.

◆ nc_bitwise_division_256

#define nc_bitwise_division_256 (   value)    (value >> 8)

Definition at line 367 of file neocore.h.

◆ nc_bitwise_division_32

#define nc_bitwise_division_32 (   value)    (value >> 5)

Definition at line 364 of file neocore.h.

◆ nc_bitwise_division_4

#define nc_bitwise_division_4 (   value)    (value >> 2)

Definition at line 361 of file neocore.h.

◆ nc_bitwise_division_64

#define nc_bitwise_division_64 (   value)    (value >> 6)

Definition at line 365 of file neocore.h.

◆ nc_bitwise_division_8

#define nc_bitwise_division_8 (   value)    (value >> 3)

Definition at line 362 of file neocore.h.

◆ nc_bitwise_multiplication_128

#define nc_bitwise_multiplication_128 (   value)    (value << 7)

Definition at line 375 of file neocore.h.

◆ nc_bitwise_multiplication_16

#define nc_bitwise_multiplication_16 (   value)    (value << 4)

Definition at line 372 of file neocore.h.

◆ nc_bitwise_multiplication_2

#define nc_bitwise_multiplication_2 (   value)    (value << 1)

Definition at line 369 of file neocore.h.

◆ nc_bitwise_multiplication_256

#define nc_bitwise_multiplication_256 (   value)    (value << 8)

Definition at line 376 of file neocore.h.

◆ nc_bitwise_multiplication_32

#define nc_bitwise_multiplication_32 (   value)    (value << 5)

Definition at line 373 of file neocore.h.

◆ nc_bitwise_multiplication_4

#define nc_bitwise_multiplication_4 (   value)    (value << 2)

Definition at line 370 of file neocore.h.

◆ nc_bitwise_multiplication_64

#define nc_bitwise_multiplication_64 (   value)    (value << 6)

Definition at line 374 of file neocore.h.

◆ nc_bitwise_multiplication_8

#define nc_bitwise_multiplication_8 (   value)    (value << 3)

Definition at line 371 of file neocore.h.

◆ nc_copy_box

#define nc_copy_box (   box_src,
  box_dest 
)    memcpy(box_dest, box_src, sizeof(Box))

Definition at line 401 of file neocore.h.

◆ nc_cos

#define nc_cos (   num)    fcos(num)

Definition at line 392 of file neocore.h.

◆ nc_fix

#define nc_fix (   num)    num * 65536

Definition at line 386 of file neocore.h.

◆ nc_fix_add

#define nc_fix_add (   num1,
  num2 
)    fadd(num1, num2)

Definition at line 389 of file neocore.h.

◆ nc_fix_mul

#define nc_fix_mul (   num1,
  num2 
)    fmul(num1, num2)

Definition at line 391 of file neocore.h.

◆ nc_fix_sub

#define nc_fix_sub (   num1,
  num2 
)    fsub(num1, num2)

Definition at line 390 of file neocore.h.

◆ nc_fix_to_int

#define nc_fix_to_int (   num)    fixtoi(num)

Definition at line 387 of file neocore.h.

◆ nc_get_frame_counter

#define nc_get_frame_counter ( )    DAT_frameCounter

Definition at line 467 of file neocore.h.

◆ nc_int_to_fix

#define nc_int_to_fix (   num)    itofix(num)

Definition at line 388 of file neocore.h.

◆ nc_max

#define nc_max (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 381 of file neocore.h.

◆ nc_min

#define nc_min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 380 of file neocore.h.

◆ nc_negative

#define nc_negative (   num)    -num

Definition at line 384 of file neocore.h.

◆ nc_random

#define nc_random (   range)    rand() % range

Definition at line 378 of file neocore.h.

◆ nc_shrunk_extract_x

#define nc_shrunk_extract_x (   value)    value >> 8

Definition at line 274 of file neocore.h.

◆ nc_shrunk_extract_y

#define nc_shrunk_extract_y (   value)    (BYTE)value

Definition at line 275 of file neocore.h.

◆ nc_stop_cdda

#define nc_stop_cdda ( )    nc_pause_cdda()

Definition at line 425 of file neocore.h.

◆ nc_tan

#define nc_tan (   num)    ftan(num)

Definition at line 393 of file neocore.h.

◆ nc_wait_vbl

#define nc_wait_vbl ( )    waitVBlank();

Definition at line 323 of file neocore.h.

◆ SHRUNK_TABLE_PROP_SIZE

#define SHRUNK_TABLE_PROP_SIZE   0x2fe

Definition at line 15 of file neocore.h.

Typedef Documentation

◆ Adpcm_player

typedef struct Adpcm_player Adpcm_player

◆ Box

typedef struct Box Box

◆ GFX_Animated_Sprite

◆ GFX_Animated_Sprite_Physic

◆ GFX_Picture

typedef struct GFX_Picture GFX_Picture

◆ GFX_Picture_Physic

◆ GFX_Scroller

typedef struct GFX_Scroller GFX_Scroller

◆ Vec2byte

typedef struct Vec2byte Vec2byte

◆ Vec2int

typedef struct Vec2int Vec2int

◆ Vec2short

typedef struct Vec2short Vec2short

Enumeration Type Documentation

◆ Direction

enum Direction
Enumerator
NONE 
UP 
DOWN 
LEFT 
RIGHT 

Definition at line 20 of file neocore.h.

◆ Sound_state

Enumerator
IDLE 
PLAYING 

Definition at line 21 of file neocore.h.

Function Documentation

◆ nc_clear_palette_index_table()

void nc_clear_palette_index_table ( )

◆ nc_clear_sprite_index_table()

void nc_clear_sprite_index_table ( )

◆ nc_clear_vram()

void nc_clear_vram ( )

◆ nc_collide_box()

BOOL nc_collide_box ( Box box1,
Box box2 
)

◆ nc_collide_boxes()

BYTE nc_collide_boxes ( Box box,
Box boxes[],
BYTE  box_max 
)

◆ nc_debug_joypad()

void nc_debug_joypad ( BYTE  id)

◆ nc_debug_paletteInfo()

void nc_debug_paletteInfo ( paletteInfo *  palette,
BOOL  palCount,
BOOL  data 
)

◆ nc_destroy_gfx_animated_sprite()

void nc_destroy_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite)

◆ nc_destroy_gfx_animated_sprite_physic()

void nc_destroy_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic)

◆ nc_destroy_gfx_picture()

void nc_destroy_gfx_picture ( GFX_Picture gfx_picture)

◆ nc_destroy_gfx_picture_physic()

void nc_destroy_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic)

◆ nc_destroy_gfx_scroller()

void nc_destroy_gfx_scroller ( GFX_Scroller gfx_scroller)

◆ nc_destroy_palette()

void nc_destroy_palette ( paletteInfo *  paletteInfo)

◆ nc_display_gfx_animated_sprite()

void nc_display_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
short  x,
short  y,
WORD  anim 
)

◆ nc_display_gfx_animated_sprite_physic()

void nc_display_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
short  x,
short  y,
WORD  anim 
)

◆ nc_display_gfx_picture()

void nc_display_gfx_picture ( GFX_Picture gfx_picture,
short  x,
short  y 
)

◆ nc_display_gfx_picture_physic()

void nc_display_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic,
short  x,
short  y 
)

◆ nc_display_gfx_scroller()

void nc_display_gfx_scroller ( GFX_Scroller gfx_scroller,
short  x,
short  y 
)

◆ nc_each_frame()

BOOL nc_each_frame ( DWORD  frame)

◆ nc_frame_to_second()

DWORD nc_frame_to_second ( DWORD  frame)

◆ nc_free_ram_info()

WORD nc_free_ram_info ( )

◆ nc_get_adpcm_player()

Adpcm_player * nc_get_adpcm_player ( )

◆ nc_get_max_free_palette_index()

WORD nc_get_max_free_palette_index ( )

◆ nc_get_max_free_sprite_index()

WORD nc_get_max_free_sprite_index ( )

◆ nc_get_max_palette_index_used()

WORD nc_get_max_palette_index_used ( )

◆ nc_get_max_sprite_index_used()

WORD nc_get_max_sprite_index_used ( )

◆ nc_get_position_gfx_animated_sprite()

Vec2short nc_get_position_gfx_animated_sprite ( GFX_Animated_Sprite  gfx_animated_sprite)

◆ nc_get_position_gfx_animated_sprite_physic()

Vec2short nc_get_position_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic  gfx_animated_sprite_physic)

◆ nc_get_position_gfx_picture()

Vec2short nc_get_position_gfx_picture ( GFX_Picture  gfx_picture)

◆ nc_get_position_gfx_picture_physic()

Vec2short nc_get_position_gfx_picture_physic ( GFX_Picture_Physic  gfx_picture_physic)

◆ nc_get_position_gfx_scroller()

Vec2short nc_get_position_gfx_scroller ( GFX_Scroller  gfx_scroller)

◆ nc_get_relative_position()

Vec2short nc_get_relative_position ( Box  box,
Vec2short  world_coord 
)

◆ nc_get_shrunk_proportional_table()

WORD nc_get_shrunk_proportional_table ( WORD  index)

◆ nc_hide_gfx_animated_sprite()

void nc_hide_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite)

◆ nc_hide_gfx_animated_sprite_physic()

void nc_hide_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic)

◆ nc_hide_gfx_picture()

void nc_hide_gfx_picture ( GFX_Picture gfx_picture)

◆ nc_hide_gfx_picture_physic()

void nc_hide_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic)

◆ nc_init_adpcm()

void nc_init_adpcm ( )

◆ nc_init_box()

void nc_init_box ( Box box,
short  width,
short  height,
short  widthOffset,
short  heightOffset 
)

◆ nc_init_display_gfx_animated_sprite()

void nc_init_display_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
spriteInfo *  spriteInfo,
paletteInfo *  paletteInfo,
short  x,
short  y,
WORD  anim 
)

◆ nc_init_display_gfx_animated_sprite_physic()

void nc_init_display_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
spriteInfo *  spriteInfo,
paletteInfo *  paletteInfo,
short  x,
short  y,
short  box_witdh,
short  box_height,
short  box_width_offset,
short  box_height_offset,
WORD  anim 
)

◆ nc_init_display_gfx_picture()

void nc_init_display_gfx_picture ( GFX_Picture gfx_picture,
pictureInfo *  pictureInfo,
paletteInfo *  paletteInfo,
short  x,
short  y 
)

◆ nc_init_display_gfx_picture_physic()

void nc_init_display_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic,
pictureInfo *  pictureInfo,
paletteInfo *  paletteInfo,
short  x,
short  y,
short  box_witdh,
short  box_height,
short  box_width_offset,
short  box_height_offset,
BOOL  autobox_enabled 
)

◆ nc_init_display_gfx_scroller()

void nc_init_display_gfx_scroller ( GFX_Scroller gfx_scroller,
scrollerInfo *  scrollerInfo,
paletteInfo *  paletteInfo,
short  x,
short  y 
)

◆ nc_init_gfx_animated_sprite()

void nc_init_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
spriteInfo *  spriteInfo,
paletteInfo *  paletteInfo 
)

◆ nc_init_gfx_animated_sprite_physic()

void nc_init_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
spriteInfo *  spriteInfo,
paletteInfo *  paletteInfo,
short  box_witdh,
short  box_height,
short  box_width_offset,
short  box_height_offset 
)

◆ nc_init_gfx_picture()

void nc_init_gfx_picture ( GFX_Picture gfx_picture,
pictureInfo *  pictureInfo,
paletteInfo *  paletteInfo 
)

◆ nc_init_gfx_picture_physic()

void nc_init_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic,
pictureInfo *  pi,
paletteInfo *  pali,
short  box_witdh,
short  box_height,
short  box_width_offset,
short  box_height_offset,
BOOL  autobox_enabled 
)

◆ nc_init_gfx_scroller()

void nc_init_gfx_scroller ( GFX_Scroller gfx_scroller,
scrollerInfo *  scrollerInfo,
paletteInfo *  paletteInfo 
)

◆ nc_init_gpu()

void nc_init_gpu ( )

◆ nc_init_log()

void nc_init_log ( )

◆ nc_init_system()

void nc_init_system ( )

◆ nc_joypad_is_a()

BOOL nc_joypad_is_a ( BYTE  id)

◆ nc_joypad_is_b()

BOOL nc_joypad_is_b ( BYTE  id)

◆ nc_joypad_is_c()

BOOL nc_joypad_is_c ( BYTE  id)

◆ nc_joypad_is_d()

BOOL nc_joypad_is_d ( BYTE  id)

◆ nc_joypad_is_down()

BOOL nc_joypad_is_down ( BYTE  id)

◆ nc_joypad_is_left()

BOOL nc_joypad_is_left ( BYTE  id)

◆ nc_joypad_is_right()

BOOL nc_joypad_is_right ( BYTE  id)

◆ nc_joypad_is_start()

BOOL nc_joypad_is_start ( BYTE  id)

◆ nc_joypad_is_up()

BOOL nc_joypad_is_up ( BYTE  id)

◆ nc_joypad_update()

void nc_joypad_update ( BYTE  id)

◆ nc_log()

void nc_log ( char *  message)

◆ nc_log_bool()

void nc_log_bool ( char *  label,
BOOL  value 
)

◆ nc_log_box()

void nc_log_box ( char *  label,
Box b 
)

◆ nc_log_byte()

void nc_log_byte ( char *  label,
BYTE  value 
)

◆ nc_log_dword()

void nc_log_dword ( char *  label,
DWORD  value 
)

◆ nc_log_info()

WORD nc_log_info ( char *  txt)

◆ nc_log_int()

void nc_log_int ( char *  label,
int  value 
)

◆ nc_log_pictureInfo()

void nc_log_pictureInfo ( char *  label,
pictureInfo *  pi 
)

◆ nc_log_short()

void nc_log_short ( char *  label,
short  value 
)

◆ nc_log_spriteInfo()

void nc_log_spriteInfo ( char *  label,
spriteInfo *  si 
)

◆ nc_log_vec2short()

void nc_log_vec2short ( char *  label,
Vec2short  vec2short 
)

◆ nc_log_word()

void nc_log_word ( char *  label,
WORD  value 
)

◆ nc_move_gfx_animated_sprite()

void nc_move_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
short  x_offset,
short  y_offset 
)

◆ nc_move_gfx_animated_sprite_physic()

void nc_move_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
short  x_offset,
short  y_offset 
)

◆ nc_move_gfx_picture()

void nc_move_gfx_picture ( GFX_Picture gfx_picture,
short  x,
short  y 
)

◆ nc_move_gfx_picture_physic()

void nc_move_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic,
short  x_offset,
short  y_offset 
)

◆ nc_move_gfx_scroller()

void nc_move_gfx_scroller ( GFX_Scroller gfx_scroller,
short  x,
short  y 
)

◆ nc_pause()

void nc_pause ( BOOL(*)()  exitFunc)

◆ nc_pause_cdda()

void nc_pause_cdda ( )

◆ nc_play_cdda()

void nc_play_cdda ( BYTE  track)

◆ nc_print()

void nc_print ( int  x,
int  y,
char *  label 
)

◆ nc_push_remaining_frame_adpcm_player()

void nc_push_remaining_frame_adpcm_player ( DWORD  frame)

◆ nc_reset()

void nc_reset ( )

◆ nc_resize_box()

void nc_resize_box ( Box Box,
short  edge 
)

◆ nc_resume_cdda()

void nc_resume_cdda ( )

◆ nc_second_to_frame()

DWORD nc_second_to_frame ( DWORD  second)

◆ nc_set_animation_gfx_animated_sprite()

void nc_set_animation_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
WORD  anim 
)

◆ nc_set_animation_gfx_animated_sprite_physic()

void nc_set_animation_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
WORD  anim 
)

◆ nc_set_joypad_edge_mode()

void nc_set_joypad_edge_mode ( BOOL  actived)

◆ nc_set_position_gfx_animated_sprite()

void nc_set_position_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite,
short  x,
short  y 
)

◆ nc_set_position_gfx_animated_sprite_physic()

void nc_set_position_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic,
short  x,
short  y 
)

◆ nc_set_position_gfx_picture()

void nc_set_position_gfx_picture ( GFX_Picture gfx_picture,
short  x,
short  y 
)

◆ nc_set_position_gfx_picture_physic()

void nc_set_position_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic,
short  x,
short  y 
)

◆ nc_set_position_gfx_scroller()

void nc_set_position_gfx_scroller ( GFX_Scroller gfx_scroller,
short  x,
short  y 
)

◆ nc_set_position_log()

void nc_set_position_log ( WORD  _x,
WORD  _y 
)

◆ nc_show_gfx_animated_sprite()

void nc_show_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite)

◆ nc_show_gfx_animated_sprite_physic()

void nc_show_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic)

◆ nc_show_gfx_picture()

void nc_show_gfx_picture ( GFX_Picture gfx_picture)

◆ nc_show_gfx_picture_physic()

void nc_show_gfx_picture_physic ( GFX_Picture_Physic gfx_picture_physic)

◆ nc_shrunk()

void nc_shrunk ( WORD  base_sprite,
WORD  max_width,
WORD  value 
)

◆ nc_shrunk_addr()

void nc_shrunk_addr ( WORD  addr,
WORD  shrunk_value 
)

◆ nc_shrunk_box()

void nc_shrunk_box ( Box box,
Box bOrigin,
WORD  shrunkValue 
)

◆ nc_shrunk_centroid_get_translated_x()

int nc_shrunk_centroid_get_translated_x ( short  centerPosX,
WORD  tileWidth,
BYTE  shrunkX 
)

◆ nc_shrunk_centroid_get_translated_y()

int nc_shrunk_centroid_get_translated_y ( short  centerPosY,
WORD  tileHeight,
BYTE  shrunkY 
)

◆ nc_shrunk_centroid_gfx_picture()

void nc_shrunk_centroid_gfx_picture ( GFX_Picture gfx_picture,
short  center_x,
short  center_y,
WORD  shrunk_value 
)

◆ nc_shrunk_forge()

WORD nc_shrunk_forge ( BYTE  xc,
BYTE  yc 
)

◆ nc_shrunk_range()

WORD nc_shrunk_range ( WORD  addr_start,
WORD  addr_end,
WORD  shrunk_value 
)

◆ nc_sin()

char nc_sin ( WORD  index)

◆ nc_sleep()

void nc_sleep ( DWORD  frame)

◆ nc_stop_adpcm()

void nc_stop_adpcm ( )

◆ nc_update()

void nc_update ( )

◆ nc_update_adpcm_player()

void nc_update_adpcm_player ( )

◆ nc_update_animation_gfx_animated_sprite()

void nc_update_animation_gfx_animated_sprite ( GFX_Animated_Sprite gfx_animated_sprite)

◆ nc_update_animation_gfx_animated_sprite_physic()

void nc_update_animation_gfx_animated_sprite_physic ( GFX_Animated_Sprite_Physic gfx_animated_sprite_physic)

◆ nc_update_box()

void nc_update_box ( Box box,
short  x,
short  y 
)

◆ nc_update_joypad()

void nc_update_joypad ( BYTE  id)

◆ nc_update_mask()

void nc_update_mask ( short  x,
short  y,
Vec2short  vec[],
Vec2short  offset[],
BYTE  vector_max 
)

◆ nc_vector_is_left()

BOOL nc_vector_is_left ( short  x,
short  y,
short  v1x,
short  v1y,
short  v2x,
short  v2y 
)

◆ nc_vectors_collide()

BOOL nc_vectors_collide ( Box box,
Vec2short  vec[],
BYTE  vector_max 
)

◆ nc_wait_vbl_max()

DWORD nc_wait_vbl_max ( WORD  nb)