Copy3DEngine/include/C3D/sprites.h

25 lines
683 B
C
Raw Permalink Normal View History

2024-10-05 00:56:13 +02:00
// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
2024-10-09 16:43:10 +02:00
// See README.md for the exact licensing, by ...
2024-10-05 00:56:13 +02:00
2024-10-10 17:53:09 +02:00
#pragma once
#include <gint/display.h>
2024-10-05 00:56:13 +02:00
#include "utils.h"
2024-10-05 21:48:42 +02:00
#include "fixed.h"
#include "game.h"
2024-10-05 00:56:13 +02:00
2024-10-08 13:16:05 +02:00
//Adds the sprite reference to the internal sprite index
// /!\ This sprite reference may be used at every call of draw_sprites
void add_sprite(Sprite *sprite);
void clear_sprites();
2024-10-27 23:52:11 +01:00
int remove_sprite(Sprite *sprite);
2024-10-25 23:05:09 +02:00
2024-10-08 13:16:05 +02:00
void draw_sprites(bopti_image_t *tex_index[], RcActor *player);
2024-10-05 00:56:13 +02:00
2024-10-22 12:27:16 +02:00
//Returns distance (-1 if no hit), hit is set to the hit sprite
//or NULL if no hit (can be passed NULL)
fixed_t raycast(RcGame *game, RcActor *origin, Sprite **hit);