Cleanup
This commit is contained in:
@@ -17,7 +17,6 @@ int draw_font_size;
|
|||||||
gpu_texture_t *_draw_current = NULL;
|
gpu_texture_t *_draw_current = NULL;
|
||||||
|
|
||||||
static iron_matrix3x3_t draw_transform;
|
static iron_matrix3x3_t draw_transform;
|
||||||
static bool draw_bilinear_filter = true;
|
|
||||||
static uint32_t draw_color = 0;
|
static uint32_t draw_color = 0;
|
||||||
static gpu_pipeline_t *draw_custom_pipeline = NULL;
|
static gpu_pipeline_t *draw_custom_pipeline = NULL;
|
||||||
|
|
||||||
@@ -708,10 +707,6 @@ bool draw_set_font(draw_font_t *font, int size) {
|
|||||||
return draw_font_load(font, size);
|
return draw_font_load(font, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_set_bilinear_filter(bool bilinear) {
|
|
||||||
draw_bilinear_filter = bilinear;
|
|
||||||
}
|
|
||||||
|
|
||||||
void draw_filled_circle(float cx, float cy, float radius, int segments) {
|
void draw_filled_circle(float cx, float cy, float radius, int segments) {
|
||||||
if (segments <= 0) {
|
if (segments <= 0) {
|
||||||
segments = (int)floor(10 * sqrtf(radius));
|
segments = (int)floor(10 * sqrtf(radius));
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ int draw_font_count(draw_font_t *font);
|
|||||||
int draw_font_height(draw_font_t *font, int font_size);
|
int draw_font_height(draw_font_t *font, int font_size);
|
||||||
float draw_sub_string_width(draw_font_t *font, int font_size, const char *text, int start, int end);
|
float draw_sub_string_width(draw_font_t *font, int font_size, const char *text, int start, int end);
|
||||||
int draw_string_width(draw_font_t *font, int font_size, const char *text);
|
int draw_string_width(draw_font_t *font, int font_size, const char *text);
|
||||||
void draw_set_bilinear_filter(bool bilinear);
|
|
||||||
|
|
||||||
void draw_filled_circle(float cx, float cy, float radius, int segments);
|
void draw_filled_circle(float cx, float cy, float radius, int segments);
|
||||||
void draw_circle(float cx, float cy, float radius, int segments, float strength);
|
void draw_circle(float cx, float cy, float radius, int segments, float strength);
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ declare function draw_font_init_glyphs(from: i32, to: i32): void;
|
|||||||
declare function draw_font_count(font: draw_font_t): i32;
|
declare function draw_font_count(font: draw_font_t): i32;
|
||||||
declare function draw_font_height(font: draw_font_t, size: i32): i32;
|
declare function draw_font_height(font: draw_font_t, size: i32): i32;
|
||||||
declare function draw_string_width(font: draw_font_t, size: i32, text: string): i32;
|
declare function draw_string_width(font: draw_font_t, size: i32, text: string): i32;
|
||||||
declare function draw_set_bilinear_filter(bilinear: bool): void;
|
|
||||||
declare function draw_set_color(color: i32): void;
|
declare function draw_set_color(color: i32): void;
|
||||||
declare function draw_set_pipeline(pipeline: any): void;
|
declare function draw_set_pipeline(pipeline: any): void;
|
||||||
declare function draw_set_transform(matrix: mat3_t): void;
|
declare function draw_set_transform(matrix: mat3_t): void;
|
||||||
|
|||||||
Reference in New Issue
Block a user