|
neocore
|
Go to the source code of this file.
Functions | |
| JOYPAD void | animated_sprite_init (Animated_Sprite *animated_sprite, spriteInfo *si, paletteInfo *pali) |
| void | animated_sprite_display (Animated_Sprite *animated_sprite, short x, short y, WORD anim) |
| BOOL | animated_sprite_flash (Animated_Sprite *animated_sprite) |
| refresh flash More... | |
| void | animated_sprite_set_animation (Animated_Sprite *animated_sprite, WORD anim) |
| void | animated_sprite_hide (Animated_Sprite *animated_sprite) |
| void | animated_sprite_show (Animated_Sprite *animated_sprite) |
| void | animated_sprite_physic_init (Animated_Sprite_Physic *animated_sprite_physic, spriteInfo *si, paletteInfo *pali, short box_witdh, short box_height, short box_width_offset, short box_height_offset) |
| void | animated_sprite_physic_display (Animated_Sprite_Physic *animated_sprite_physic, short x, short y, WORD anim) |
| void | animated_sprite_physic_set_position (Animated_Sprite_Physic *animated_sprite_physic, short x, short y) |
| void | animated_sprite_physic_move (Animated_Sprite_Physic *animated_sprite_physic, short x_offset, short y_offset) |
| void | animated_sprite_physic_shrunk (Animated_Sprite_Physic *animated_sprite_physic, WORD shrunk_value) |
| void | animated_sprite_physic_hide (Animated_Sprite_Physic *animated_sprite_physic) |
| hide a Animated_Sprite_Physic More... | |
| void | animated_sprite_physic_show (Animated_Sprite_Physic *animated_sprite_physic) |
| show a Animated_Sprite_Physic More... | |
| void | animated_sprite_physic_flash (Animated_Sprite_Physic *animated_sprite_physic) |
| refresh a Animated_Sprite_Physic flash More... | |
| BYTE | boxes_collide (Box *b, Box *boxes[], BYTE box_max) |
| check if a box is colliding with a box list More... | |
| BOOL | box_collide (Box *b1, Box *b2) |
| check if two box is colliding More... | |
| void | box_init (Box *b, short width, short height, short widthOffset, short heightOffset) |
| void | box_update (Box *b, short x, short y) |
| refresh Box position More... | |
| void | box_shrunk (Box *b, Box *bOrigin, WORD shrunkValue) |
| void | box_resize (Box *box, short edge) |
| void | clear_vram () |
| void | fix_print_neocore (int x, int y, char *label) |
| void | flash_init (Flash *flash, short frequency, short lengh) |
| void | gpu_init () |
| WORD | get_sprite_index () |
| WORD | get_sprite_index_from_picture (pictureInfo *pi) |
| WORD | get_sprite_index_from_sprite (spriteInfo *si) |
| BYTE | get_palette_index (paletteInfo *pali) |
| WORD | get_shrunk_proportional_table (WORD index) |
| char | get_sin (WORD index) |
| BOOL | is_visible (Flash *flash) |
| void | image_init (Image *image, pictureInfo *pi, paletteInfo *pali) |
| void | image_display (Image *image, short x, short y) |
| void | image_set_position (Image *image, short x, short y) |
| void | image_hide (Image *image) |
| hide Image More... | |
| void | image_show (Image *image) |
| show Image More... | |
| BOOL | image_flash (Image *image) |
| void | image_physic_init (Image_Physic *image_physic, pictureInfo *pi, paletteInfo *pali, short box_witdh, short box_height, short box_width_offset, short box_height_offset) |
| void | image_physic_display (Image_Physic *image_physic, short x, short y) |
| void | image_physic_move (Image_Physic *image_physic, short x_offset, short y_offset) |
| void | image_physic_set_position (Image_Physic *image_physic, short x, short y) |
| void | image_physic_hide (Image_Physic *image_physic) |
| Hide Image_Physic & disable physic. More... | |
| void | image_physic_show (Image_Physic *image_physic) |
| Show Image_Physic & enable physic. More... | |
| void | image_physic_flash (Image_Physic *image_physic) |
| void | image_physic_shrunk (Image_Physic *image_physic, WORD shrunk_value) |
| void | image_shrunk_centroid (Image *image, short center_x, short center_y, WORD shrunk_value) |
| void | joypad_debug () |
| void | joypad_update () |
| void | joypad_update_edge () |
| BOOL | joypad_is_up () |
| BOOL | joypad_is_down () |
| BOOL | joypad_is_left () |
| BOOL | joypad_is_right () |
| BOOL | joypad_is_start () |
| BOOL | joypad_is_a () |
| BOOL | joypad_is_b () |
| BOOL | joypad_is_c () |
| BOOL | joypad_is_d () |
| void | logger_init () |
| void | logger_set_position (WORD _x, WORD _y) |
| WORD | logger_info (char *label) |
| void | logger_word (char *label, WORD value) |
| void | logger_int (char *label, int value) |
| void | logger_dword (char *label, DWORD value) |
| void | logger_short (char *label, short value) |
| void | logger_byte (char *label, BYTE value) |
| void | logger_bool (char *label, BOOL value) |
| void | logger_animated_sprite (char *label, Animated_Sprite *animated_sprite) |
| void | logger_spriteInfo (char *label, spriteInfo *si) |
| void | logger_box (char *label, Box *b) |
| void | logger_pictureInfo (char *label, pictureInfo *pi) |
| void | palette_disable_auto_index () |
| Disable auto management of palette index. More... | |
| void | palette_enable_auto_index () |
| Enable auto management of palette index. More... | |
| BOOL | vector_is_left (short x, short y, short v1x, short v1y, short v2x, short v2y) |
| void | vec2int_init (Vec2int *vec, int x, int y) |
| init a Vec2int structure More... | |
| void | vec2short_init (Vec2short *vec, short x, short y) |
| init a Vec2short structure More... | |
| void | vec2byte_init (Vec2byte *vec, BYTE x, BYTE y) |
| init a Vec2byte structure More... | |
| BOOL | vectors_collide (Box *box, Vec2short vec[], BYTE vector_max) |
| BYTE | set_palette_index (BYTE index) |
| void | sprite_disable_autoinc () |
| void | sprite_enable_autoinc () |
| void | sprite_set_index (WORD index) |
| void | scroller_set_position (Scroller *s, short x, short y) |
| void | scroller_display (Scroller *s, short x, short y) |
| void | scroller_move (Scroller *s, short x, short y) |
| void | scroller_init (Scroller *s, scrollerInfo *si, paletteInfo *pali) |
| void | shrunk_addr (WORD addr, WORD shrunk_value) |
| WORD | shrunk_forge (BYTE xc, BYTE yc) |
| WORD | shrunk_range (WORD addr_start, WORD addr_end, WORD shrunk_value) |
| void | shrunk (WORD base_sprite, WORD max_width, WORD value) |
| int | shrunk_centroid_get_translated_x (short centerPosX, WORD tileWidth, BYTE shrunkX) |
| int | shrunk_centroid_get_translated_y (short centerPosY, WORD tileHeight, BYTE shrunkY) |
| DWORD | wait_vbl_max (WORD nb) |
| void | mask_update (short x, short y, Vec2short vec[], Vec2short offset[], BYTE vector_max) |
| void animated_sprite_display | ( | Animated_Sprite * | animated_sprite, |
| short | x, | ||
| short | y, | ||
| WORD | anim | ||
| ) |
| Animated_Sprite* | Animated_Sprite pointer |
| x | position |
| y | position |
| anim | DATLib macro |
Definition at line 104 of file neocore.c.
| BOOL animated_sprite_flash | ( | Animated_Sprite * | animated_sprite | ) |
refresh flash
| Animated_Sprite* | Animated_Sprite pointer |
Definition at line 126 of file neocore.c.
| void animated_sprite_hide | ( | Animated_Sprite * | animated_sprite | ) |
| JOYPAD void animated_sprite_init | ( | Animated_Sprite * | animated_sprite, |
| spriteInfo * | si, | ||
| paletteInfo * | pali | ||
| ) |
| Animated_Sprite* | Animated_Sprite pointer |
| spriteInfo* | spriteInfo pointer to DATLib structure |
| paletteInfo* | paletteInfo pointer to DATLib structure |
Definition at line 98 of file neocore.c.
| void animated_sprite_physic_display | ( | Animated_Sprite_Physic * | animated_sprite_physic, |
| short | x, | ||
| short | y, | ||
| WORD | anim | ||
| ) |
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
| x | |
| y | |
| anim | DATLib macro |
Definition at line 186 of file neocore.c.
| void animated_sprite_physic_flash | ( | Animated_Sprite_Physic * | animated_sprite_physic | ) |
refresh a Animated_Sprite_Physic flash
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
Definition at line 221 of file neocore.c.
| void animated_sprite_physic_hide | ( | Animated_Sprite_Physic * | animated_sprite_physic | ) |
hide a Animated_Sprite_Physic
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
Definition at line 211 of file neocore.c.
| void animated_sprite_physic_init | ( | Animated_Sprite_Physic * | animated_sprite_physic, |
| spriteInfo * | si, | ||
| paletteInfo * | pali, | ||
| short | box_witdh, | ||
| short | box_height, | ||
| short | box_width_offset, | ||
| short | box_height_offset | ||
| ) |
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
| paletteInfo* | pointer to DATLib structure |
| witdh | of the physic box |
| height | of the physic box |
| width | offset to reduce physic box |
| height | offset to reduce physic box |
Definition at line 162 of file neocore.c.
| void animated_sprite_physic_move | ( | Animated_Sprite_Physic * | animated_sprite_physic, |
| short | x_offset, | ||
| short | y_offset | ||
| ) |
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
| x | offset |
| y | offset |
Definition at line 201 of file neocore.c.
| void animated_sprite_physic_set_position | ( | Animated_Sprite_Physic * | animated_sprite_physic, |
| short | x, | ||
| short | y | ||
| ) |
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
| x | |
| y |
Definition at line 196 of file neocore.c.
| void animated_sprite_physic_show | ( | Animated_Sprite_Physic * | animated_sprite_physic | ) |
show a Animated_Sprite_Physic
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
Definition at line 216 of file neocore.c.
| void animated_sprite_physic_shrunk | ( | Animated_Sprite_Physic * | animated_sprite_physic, |
| WORD | shrunk_value | ||
| ) |
| Animated_Sprite_Physic* | Animated_Sprite_Physic pointer |
| shrunk | use shrunk_forge function for make a WORD with width & heigh value |
Definition at line 206 of file neocore.c.
| void animated_sprite_set_animation | ( | Animated_Sprite * | animated_sprite, |
| WORD | anim | ||
| ) |
| Animated_Sprite* | Animated_Sprite pointer |
| anim | DATLib macro |
Definition at line 144 of file neocore.c.
| void animated_sprite_show | ( | Animated_Sprite * | animated_sprite | ) |
| void box_init | ( | Box * | b, |
| short | width, | ||
| short | height, | ||
| short | widthOffset, | ||
| short | heightOffset | ||
| ) |
| void box_update | ( | Box * | b, |
| short | x, | ||
| short | y | ||
| ) |
|
inline |
| void flash_init | ( | Flash * | flash, |
| short | frequency, | ||
| short | lengh | ||
| ) |
| BYTE get_palette_index | ( | paletteInfo * | pali | ) |
| WORD get_shrunk_proportional_table | ( | WORD | index | ) |
| char get_sin | ( | WORD | index | ) |
| WORD get_sprite_index | ( | ) |
| WORD get_sprite_index_from_picture | ( | pictureInfo * | pi | ) |
| WORD get_sprite_index_from_sprite | ( | spriteInfo * | si | ) |
|
inline |
| void image_display | ( | Image * | image, |
| short | x, | ||
| short | y | ||
| ) |
| Image* | Image pointer |
| x | |
| y |
Definition at line 416 of file neocore.c.
| BOOL image_flash | ( | Image * | image | ) |
| void image_hide | ( | Image * | image | ) |
| void image_init | ( | Image * | image, |
| pictureInfo * | pi, | ||
| paletteInfo * | pali | ||
| ) |
| void image_physic_display | ( | Image_Physic * | image_physic, |
| short | x, | ||
| short | y | ||
| ) |
| void image_physic_flash | ( | Image_Physic * | image_physic | ) |
| void image_physic_hide | ( | Image_Physic * | image_physic | ) |
Hide Image_Physic & disable physic.
| Image_Physic* | Pointer |
Definition at line 500 of file neocore.c.
| void image_physic_init | ( | Image_Physic * | image_physic, |
| pictureInfo * | pi, | ||
| paletteInfo * | pali, | ||
| short | box_witdh, | ||
| short | box_height, | ||
| short | box_width_offset, | ||
| short | box_height_offset | ||
| ) |
| Image_Physic* | Image_Physic pointer |
| pictureInfo* | pointer to DATLib structure |
| paletteInfo* | pointer to DATLib structure |
| width | Box width |
| height | Box height |
| width_offset | Box offset reduce |
| height_offset | Box offset reduce |
Definition at line 472 of file neocore.c.
| void image_physic_move | ( | Image_Physic * | image_physic, |
| short | x_offset, | ||
| short | y_offset | ||
| ) |
| void image_physic_set_position | ( | Image_Physic * | image_physic, |
| short | x, | ||
| short | y | ||
| ) |
| void image_physic_show | ( | Image_Physic * | image_physic | ) |
Show Image_Physic & enable physic.
| Image_Physic | Pointer |
Definition at line 505 of file neocore.c.
| void image_physic_shrunk | ( | Image_Physic * | image_physic, |
| WORD | shrunk_value | ||
| ) |
| void image_show | ( | Image * | image | ) |
| void image_shrunk_centroid | ( | Image * | image, |
| short | center_x, | ||
| short | center_y, | ||
| WORD | shrunk_value | ||
| ) |
| Image* | Image pointer |
| x | center position |
| y | center position |
| shrunk | use shrunk_forge function for make a WORD with width & heigh value |
Definition at line 519 of file neocore.c.
| void joypad_update | ( | ) |
| void joypad_update_edge | ( | ) |
|
inline |
|
inline |
|
inline |
| void logger_set_position | ( | WORD | _x, |
| WORD | _y | ||
| ) |
|
inline |
| void palette_disable_auto_index | ( | ) |
| void palette_enable_auto_index | ( | ) |
| void scroller_display | ( | Scroller * | s, |
| short | x, | ||
| short | y | ||
| ) |
| Scroller* | Pointer |
| x | |
| y |
Definition at line 771 of file neocore.c.
| void scroller_init | ( | Scroller * | s, |
| scrollerInfo * | si, | ||
| paletteInfo * | pali | ||
| ) |
| void scroller_move | ( | Scroller * | s, |
| short | x, | ||
| short | y | ||
| ) |
| void scroller_set_position | ( | Scroller * | s, |
| short | x, | ||
| short | y | ||
| ) |
| Scroller* | Pointer |
| x | |
| y |
| BYTE set_palette_index | ( | BYTE | index | ) |
| void shrunk | ( | WORD | base_sprite, |
| WORD | max_width, | ||
| WORD | value | ||
| ) |
| index | Base sprite index |
| width | Shrunk width factor |
| value |
Definition at line 826 of file neocore.c.
|
inline |
| int shrunk_centroid_get_translated_x | ( | short | centerPosX, |
| WORD | tileWidth, | ||
| BYTE | shrunkX | ||
| ) |
| int shrunk_centroid_get_translated_y | ( | short | centerPosY, |
| WORD | tileHeight, | ||
| BYTE | shrunkY | ||
| ) |
| WORD shrunk_forge | ( | BYTE | xc, |
| BYTE | yc | ||
| ) |
| x | Shrunk width factor |
| y | Shrunk height factor |
| WORD shrunk_range | ( | WORD | addr_start, |
| WORD | addr_end, | ||
| WORD | shrunk_value | ||
| ) |
| void sprite_disable_autoinc | ( | ) |
| void sprite_enable_autoinc | ( | ) |
| void sprite_set_index | ( | WORD | index | ) |
| void vec2byte_init | ( | Vec2byte * | vec, |
| BYTE | x, | ||
| BYTE | y | ||
| ) |
| void vec2int_init | ( | Vec2int * | vec, |
| int | x, | ||
| int | y | ||
| ) |
| void vec2short_init | ( | Vec2short * | vec, |
| short | x, | ||
| short | y | ||
| ) |
| BOOL vector_is_left | ( | short | x, |
| short | y, | ||
| short | v1x, | ||
| short | v1y, | ||
| short | v2x, | ||
| short | v2y | ||
| ) |
1.8.15