Skip to content

Commit

Permalink
Wrapped GLX_NV_vertex_array_range functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed May 27, 2021
1 parent d2e5f71 commit 213f51c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@
#() pFffff
#() pFdipp
#() pFdddd
#() pFlfff
#() pFpiii
#() pFpiip
#() pFpiuu
Expand Down
2 changes: 2 additions & 0 deletions src/wrapped/generated/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ typedef void* (*pFuiii_t)(uint32_t, int32_t, int32_t, int32_t);
typedef void* (*pFffff_t)(float, float, float, float);
typedef void* (*pFdipp_t)(double, int32_t, void*, void*);
typedef void* (*pFdddd_t)(double, double, double, double);
typedef void* (*pFlfff_t)(intptr_t, float, float, float);
typedef void* (*pFpiii_t)(void*, int32_t, int32_t, int32_t);
typedef void* (*pFpiip_t)(void*, int32_t, int32_t, void*);
typedef void* (*pFpiuu_t)(void*, int32_t, uint32_t, uint32_t);
Expand Down Expand Up @@ -2802,6 +2803,7 @@ void pFuiii(x86emu_t *emu, uintptr_t fcn) { pFuiii_t fn = (pFuiii_t)fcn; R_EAX=(
void pFffff(x86emu_t *emu, uintptr_t fcn) { pFffff_t fn = (pFffff_t)fcn; R_EAX=(uintptr_t)fn(*(float*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16)); }
void pFdipp(x86emu_t *emu, uintptr_t fcn) { pFdipp_t fn = (pFdipp_t)fcn; R_EAX=(uintptr_t)fn(*(double*)(R_ESP + 4), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20)); }
void pFdddd(x86emu_t *emu, uintptr_t fcn) { pFdddd_t fn = (pFdddd_t)fcn; R_EAX=(uintptr_t)fn(*(double*)(R_ESP + 4), *(double*)(R_ESP + 12), *(double*)(R_ESP + 20), *(double*)(R_ESP + 28)); }
void pFlfff(x86emu_t *emu, uintptr_t fcn) { pFlfff_t fn = (pFlfff_t)fcn; R_EAX=(uintptr_t)fn(*(intptr_t*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16)); }
void pFpiii(x86emu_t *emu, uintptr_t fcn) { pFpiii_t fn = (pFpiii_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(int32_t*)(R_ESP + 16)); }
void pFpiip(x86emu_t *emu, uintptr_t fcn) { pFpiip_t fn = (pFpiip_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16)); }
void pFpiuu(x86emu_t *emu, uintptr_t fcn) { pFpiuu_t fn = (pFpiuu_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16)); }
Expand Down
1 change: 1 addition & 0 deletions src/wrapped/generated/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ void pFuiii(x86emu_t *emu, uintptr_t fnc);
void pFffff(x86emu_t *emu, uintptr_t fnc);
void pFdipp(x86emu_t *emu, uintptr_t fnc);
void pFdddd(x86emu_t *emu, uintptr_t fnc);
void pFlfff(x86emu_t *emu, uintptr_t fnc);
void pFpiii(x86emu_t *emu, uintptr_t fnc);
void pFpiip(x86emu_t *emu, uintptr_t fnc);
void pFpiuu(x86emu_t *emu, uintptr_t fnc);
Expand Down
4 changes: 4 additions & 0 deletions src/wrapped/wrappedlibgl_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -3009,3 +3009,7 @@ GO(glXGetSwapIntervalMESA, iFv)

//GLX_SGI_swap_control
GO(glXSwapIntervalSGI,iFi)

//GLX_NV_vertex_array_range
GO(glXAllocateMemoryNV, pFlfff)
GO(glXFreeMemoryNV, vFp)

0 comments on commit 213f51c

Please sign in to comment.