rename get_text_width() to text_get_width()
This commit is contained in:
		| @@ -28,7 +28,7 @@ static void title_tick(State *state) { | ||||
|  | ||||
|     const char *font = "fonts/kenney-pixel.ttf"; | ||||
|     int text_h = 32; | ||||
|     int text_w = get_text_width(text_str, text_h, font); | ||||
|     int text_w = text_get_width(text_str, text_h, font); | ||||
|  | ||||
|     push_rectangle( | ||||
|         (Rect) { | ||||
|   | ||||
| @@ -36,7 +36,7 @@ TWN_API void push_rectangle(Rect rect, Color color); | ||||
| TWN_API void push_circle(Vec2 position, float radius, Color color); | ||||
|  | ||||
| TWN_API void push_text(char *string, Vec2 position, int height_px, Color color, const char *font_path); | ||||
| TWN_API int get_text_width(char *string, int height_px, const char *font_path); | ||||
| TWN_API int text_get_width(char *string, int height_px, const char *font_path); | ||||
|  | ||||
| /* pushes a textured 3d triangle onto the render queue */ | ||||
| /* vertices are in absolute coordinates, relative to world origin */ | ||||
|   | ||||
| @@ -184,7 +184,7 @@ void push_text(char *string, Vec2 position, int height_px, Color color, const ch | ||||
| } | ||||
|  | ||||
|  | ||||
| int get_text_width(char *string, int height_px, const char *font_path) { | ||||
| int text_get_width(char *string, int height_px, const char *font_path) { | ||||
|     ensure_font_cache(font_path, height_px); | ||||
|     FontData *font_data = get_font_data(font_path, height_px); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user