mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 23:54:07 +00:00
Add vendor:raylib (core only)
This commit is contained in:
@@ -3,6 +3,8 @@ package win32
|
||||
|
||||
foreign import "system:user32.lib"
|
||||
|
||||
import "core:intrinsics"
|
||||
|
||||
|
||||
Menu_Bar_Info :: struct {
|
||||
size: u32,
|
||||
@@ -94,7 +96,9 @@ MB_SERVICE_NOTIFICATION :: 0x00200000
|
||||
@(default_calling_convention = "std")
|
||||
foreign user32 {
|
||||
@(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="SetCursorPos") set_cursor_pos :: proc(x, y: i32) -> 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 gl "vendor:OpenGL"
|
||||
import rl "vendor:raylib"
|
||||
import PM "vendor:portmidi"
|
||||
import SDL "vendor:sdl2"
|
||||
import IMG "vendor:sdl2/image"
|
||||
|
||||
16
vendor/raylib/LICENSE
vendored
Normal file
16
vendor/raylib/LICENSE
vendored
Normal file
@@ -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.
|
||||
BIN
vendor/raylib/raylib.dll
vendored
Normal file
BIN
vendor/raylib/raylib.dll
vendored
Normal file
Binary file not shown.
BIN
vendor/raylib/raylib.lib
vendored
Normal file
BIN
vendor/raylib/raylib.lib
vendored
Normal file
Binary file not shown.
1368
vendor/raylib/raylib.odin
vendored
Normal file
1368
vendor/raylib/raylib.odin
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vendor/raylib/raylibdll.lib
vendored
Normal file
BIN
vendor/raylib/raylibdll.lib
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user