mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-23 19:10:30 +00:00
Add WIN32 symbols for OpenGL support (#304)
This commit is contained in:
parent
30cd28b1f8
commit
0a0997a872
20 changed files with 290 additions and 92 deletions
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_ChoosePixelFormat,ChoosePixelFormat,1040
|
||||
|
||||
.text.windows
|
||||
ChoosePixelFormat:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_ChoosePixelFormat(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn ChoosePixelFormat,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_CreateBitmap,CreateBitmap,1056
|
||||
|
||||
.text.windows
|
||||
CreateBitmap:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreateBitmap(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
.endfn CreateBitmap,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_CreateDIBSection,CreateDIBSection,1069
|
||||
|
||||
.text.windows
|
||||
CreateDIBSection:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreateDIBSection(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
.endfn CreateDIBSection,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_CreateRectRgn,CreateRectRgn,1097
|
||||
|
||||
.text.windows
|
||||
CreateRectRgn:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreateRectRgn(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn CreateRectRgn,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_SetPixelFormat,SetPixelFormat,1902
|
||||
|
||||
.text.windows
|
||||
SetPixelFormat:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_SetPixelFormat(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn SetPixelFormat,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_SwapBuffers,SwapBuffers,1929
|
||||
|
||||
.text.windows
|
||||
SwapBuffers:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_SwapBuffers(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn SwapBuffers,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue