Initial setup of sokol_gfx to replace the raylib impl for rendering.
Next I need to setup sokol_gp
This commit is contained in:
		| @@ -2,6 +2,7 @@ package sectr | ||||
|  | ||||
| // Scratch space | ||||
|  | ||||
| import sokol_gfx "thirdparty:sokol/gfx" | ||||
| import rl "vendor:raylib" | ||||
|  | ||||
| DebugData :: struct { | ||||
| @@ -38,5 +39,10 @@ DebugData :: struct { | ||||
| 	cam_vp      : rl.Camera3D, | ||||
| 	viewport_rt : rl.RenderTexture, | ||||
|  | ||||
| 	proto_text_shader : rl.Shader | ||||
| 	gfx_clear_demo_pass_action : sokol_gfx.Pass_Action, | ||||
| 	gfx_tri_demo_state : struct { | ||||
| 		pipeline    : sokol_gfx.Pipeline, | ||||
|     bindings    : sokol_gfx.Bindings, | ||||
|     pass_action : sokol_gfx.Pass_Action, | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -277,7 +277,7 @@ ui_screen_settings_menu :: proc( captures : rawptr = nil ) -> ( should_raise : b | ||||
| 						layout.text_alignment = {0, 0.5} | ||||
| 						layout.anchor.left    = 1.0 | ||||
| 						layout.flags          = {.Fixed_Width} | ||||
| 						layout.size.min       = cast(Vec2) measure_text_size( value_txt.text.str, value_txt.style.font, value_txt.layout.font_size, 0 ) | ||||
| 						// layout.size.min       = cast(Vec2) measure_text_size( value_txt.text.str, value_txt.style.font, value_txt.layout.font_size, 0 ) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user