|
@@ -5,16 +5,20 @@ import "core:log"
|
|
|
|
|
|
|
|
main :: proc() {
|
|
main :: proc() {
|
|
|
context.logger = log.create_console_logger()
|
|
context.logger = log.create_console_logger()
|
|
|
- k2.init(1280, 720, "Karl2D Minimal Program")
|
|
|
|
|
|
|
+ k2.init(1080, 1080, "Karl2D Minimal Program")
|
|
|
k2.set_window_position(300, 100)
|
|
k2.set_window_position(300, 100)
|
|
|
|
|
|
|
|
|
|
+ img := k2.load_texture_from_file("sixten.jpg")
|
|
|
|
|
+
|
|
|
for !k2.shutdown_wanted() {
|
|
for !k2.shutdown_wanted() {
|
|
|
k2.process_events()
|
|
k2.process_events()
|
|
|
k2.clear(k2.BLUE)
|
|
k2.clear(k2.BLUE)
|
|
|
k2.draw_text("Hellope!", {10, 10}, 32, k2.WHITE)
|
|
k2.draw_text("Hellope!", {10, 10}, 32, k2.WHITE)
|
|
|
|
|
+
|
|
|
|
|
+ k2.draw_texture(img, {50, 50}, k2.WHITE)
|
|
|
k2.present()
|
|
k2.present()
|
|
|
free_all(context.temp_allocator)
|
|
free_all(context.temp_allocator)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
k2.shutdown()
|
|
k2.shutdown()
|
|
|
-}
|
|
|
|
|
|
|
+}
|