add c and jai
This commit is contained in:
10
jai/modules/Console_Render/console.jai
Normal file
10
jai/modules/Console_Render/console.jai
Normal file
@@ -0,0 +1,10 @@
|
||||
swap_buffer :: (screen: *Screen) {
|
||||
using screen;
|
||||
write_string(cast(string)buffer);
|
||||
}
|
||||
|
||||
clear_screen :: (screen: *Screen) {
|
||||
for 0..screen.height * screen.width {
|
||||
print_color(" ", color = .BLACK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user