mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Add vendor:raylib (core only)
This commit is contained in:
@@ -3,6 +3,8 @@ package win32
|
|||||||
|
|
||||||
foreign import "system:user32.lib"
|
foreign import "system:user32.lib"
|
||||||
|
|
||||||
|
import "core:intrinsics"
|
||||||
|
|
||||||
|
|
||||||
Menu_Bar_Info :: struct {
|
Menu_Bar_Info :: struct {
|
||||||
size: u32,
|
size: u32,
|
||||||
@@ -94,7 +96,9 @@ MB_SERVICE_NOTIFICATION :: 0x00200000
|
|||||||
@(default_calling_convention = "std")
|
@(default_calling_convention = "std")
|
||||||
foreign user32 {
|
foreign user32 {
|
||||||
@(link_name="GetDesktopWindow") get_desktop_window :: proc() -> Hwnd ---
|
@(link_name="GetDesktopWindow") get_desktop_window :: proc() -> Hwnd ---
|
||||||
@(link_name="ShowCursor") show_cursor :: proc(show: Bool) -> i32 ---
|
when !intrinsics.is_package_imported("raylib") { // NOTE(bill): this is a bit of hack but it's to get around the namespace collisions
|
||||||
|
@(link_name="ShowCursor")show_cursor :: proc(show: Bool) -> i32 ---
|
||||||
|
}
|
||||||
@(link_name="GetCursorPos") get_cursor_pos :: proc(p: ^Point) -> Bool ---
|
@(link_name="GetCursorPos") get_cursor_pos :: proc(p: ^Point) -> Bool ---
|
||||||
@(link_name="SetCursorPos") set_cursor_pos :: proc(x, y: i32) -> Bool ---
|
@(link_name="SetCursorPos") set_cursor_pos :: proc(x, y: i32) -> Bool ---
|
||||||
@(link_name="ScreenToClient") screen_to_client :: proc(h: Hwnd, p: ^Point) -> Bool ---
|
@(link_name="ScreenToClient") screen_to_client :: proc(h: Hwnd, p: ^Point) -> Bool ---
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ import utf16 "core:unicode/utf16"
|
|||||||
|
|
||||||
import glfw "vendor:glfw"
|
import glfw "vendor:glfw"
|
||||||
import gl "vendor:OpenGL"
|
import gl "vendor:OpenGL"
|
||||||
|
import rl "vendor:raylib"
|
||||||
import PM "vendor:portmidi"
|
import PM "vendor:portmidi"
|
||||||
import SDL "vendor:sdl2"
|
import SDL "vendor:sdl2"
|
||||||
import IMG "vendor:sdl2/image"
|
import IMG "vendor:sdl2/image"
|
||||||
|
|||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
Copyright (c) 2013-2021 Ramon Santamaria (@raysan5)
|
||||||
|
|
||||||
|
This software is provided "as-is", without any express or implied warranty. In no event
|
||||||
|
will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose, including commercial
|
||||||
|
applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not claim that you
|
||||||
|
wrote the original software. If you use this software in a product, an acknowledgment
|
||||||
|
in the product documentation would be appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be misrepresented
|
||||||
|
as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
+1368
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user