Core Native GBA 0.0.17
create your own game-engine with just lua for nitendo game boy advance console.
Loading...
Searching...
No Matches
geoclip.c File Reference
#include "zeebo.h"
Include dependency graph for geoclip.c:

Go to the source code of this file.

Functions

uint8_t geoclip_rect (int32_t *posx, int32_t *posy, int32_t *width, int32_t *height)
 adjusts a rectangle within the screen
 
uint8_t geoclip_line (int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2)
 adjusts a line within the screen
 

Function Documentation

◆ geoclip_line()

uint8_t geoclip_line ( int32_t * x1,
int32_t * y1,
int32_t * x2,
int32_t * y2 )

adjusts a line within the screen

Todo
use cohen, liang-barsky, clipping de retA, cos, ou another method do clip drop line.
Parameters
[in,out]x1
[in,out]y1
[in,out]x2
[in,out]y2
Returns
fits on the screen

Definition at line 51 of file geoclip.c.

◆ geoclip_rect()

uint8_t geoclip_rect ( int32_t * posx,
int32_t * posy,
int32_t * width,
int32_t * height )

adjusts a rectangle within the screen

Parameters
[in,out]posx
[in,out]posy
[in,out]width
[in,out]height
Returns
fits on the screen

Definition at line 11 of file geoclip.c.