repeating textures in sprite rendering
This commit is contained in:
		| @@ -54,6 +54,11 @@ static void ingame_tick(struct state *state) { | ||||
|         input_set_mouse_captured(&ctx.input, !input_is_mouse_captured(&ctx.input)); | ||||
|     } | ||||
|  | ||||
|     m_sprite(m_set(path,  "/assets/light.png"), | ||||
|              m_set(rect,  ((t_frect){ 0, 128, 256, 32 })), | ||||
|              m_opt(color, ((t_color){ 255, 0, 0, 255 })), | ||||
|              m_opt(scale, false )); | ||||
|  | ||||
|     m_sprite(m_set(path,  "/assets/light.png"), | ||||
|              m_set(rect,  ((t_frect){ 48, 64, 64, 64 })), | ||||
|              m_opt(color, ((t_color){ 255, 0, 0, 255 }))); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user