port from perforce
This commit is contained in:
95
hgplus/las/framework-dx11-nasm/inc/opengl.inc
Normal file
95
hgplus/las/framework-dx11-nasm/inc/opengl.inc
Normal file
@@ -0,0 +1,95 @@
|
||||
; opengl.inc - las/mercury
|
||||
|
||||
; opengl32
|
||||
extern _wglCreateContext@4
|
||||
extern _wglGetProcAddress@4
|
||||
extern _wglMakeCurrent@8
|
||||
|
||||
extern _glClearColor@16
|
||||
extern _glClear@4
|
||||
extern _glColor4ubv@4
|
||||
extern _glColor4f@16
|
||||
extern _glRecti@16
|
||||
extern _glRectf@16
|
||||
extern _glGetString@4
|
||||
|
||||
extern _glTexParameteri@12
|
||||
extern _glTexImage2D@36
|
||||
extern _glBindTexture@8
|
||||
extern _glGenTextures@8
|
||||
|
||||
extern _glGetIntegerv@8
|
||||
extern _glViewport@16
|
||||
|
||||
%define GL_COMPUTE_SHADER 0x91b9
|
||||
%define GL_FRAGMENT_SHADER 0x8b30
|
||||
|
||||
%define GL_VERSION 0x1F02
|
||||
|
||||
%define GL_DEPTH_BUFFER_BIT 0x00000100
|
||||
%define GL_COLOR_BUFFER_BIT 0x00004000
|
||||
|
||||
%define GL_FRAMEBUFFER 0x8D40
|
||||
%define GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
||||
|
||||
%define GL_SHADER_STORAGE_BUFFER 0x90D2
|
||||
%define GL_UNIFORM_BUFFER 0x8A11
|
||||
|
||||
%define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
|
||||
|
||||
%define GL_STREAM_DRAW 0x88E0
|
||||
%define GL_STREAM_READ 0x88E1
|
||||
%define GL_STREAM_COPY 0x88E2
|
||||
%define GL_STATIC_DRAW 0x88E4
|
||||
%define GL_STATIC_READ 0x88E5
|
||||
%define GL_STATIC_COPY 0x88E6
|
||||
%define GL_DYNAMIC_DRAW 0x88E8
|
||||
%define GL_DYNAMIC_READ 0x88E9
|
||||
%define GL_DYNAMIC_COPY 0x88EA
|
||||
|
||||
%define GL_TEXTURE0 0x84C0
|
||||
%define GL_TEXTURE1 (GL_TEXTURE0+1)
|
||||
%define GL_TEXTURE2 (GL_TEXTURE0+2)
|
||||
%define GL_TEXTURE3 (GL_TEXTURE0+3)
|
||||
%define GL_TEXTURE4 (GL_TEXTURE0+4)
|
||||
%define GL_TEXTURE5 (GL_TEXTURE0+5)
|
||||
%define GL_TEXTURE6 (GL_TEXTURE0+6)
|
||||
%define GL_TEXTURE7 (GL_TEXTURE0+7)
|
||||
%define GL_TEXTURE8 (GL_TEXTURE0+8)
|
||||
%define GL_TEXTURE9 (GL_TEXTURE0+9)
|
||||
|
||||
%define GL_TEXTURE_2D 0x0DE1
|
||||
|
||||
%define GL_NEAREST 0x2600
|
||||
%define GL_LINEAR 0x2601
|
||||
%define GL_LINEAR_MIPMAP_LINEAR 0x2703
|
||||
|
||||
%define GL_TEXTURE_MAG_FILTER 0x2800
|
||||
%define GL_TEXTURE_MIN_FILTER 0x2801
|
||||
|
||||
%define GL_CLAMP_TO_EDGE 0x812F
|
||||
%define GL_CLAMP 0x2900
|
||||
%define GL_REPEAT 0x2901
|
||||
|
||||
%define GL_TEXTURE_WRAP_R 0x8072
|
||||
%define GL_TEXTURE_WRAP_S 0x2802
|
||||
%define GL_TEXTURE_WRAP_T 0x2803
|
||||
|
||||
%define GL_BYTE 0x1400
|
||||
%define GL_UNSIGNED_BYTE 0x1401
|
||||
%define GL_SHORT 0x1402
|
||||
%define GL_UNSIGNED_SHORT 0x1403
|
||||
%define GL_INT 0x1404
|
||||
%define GL_UNSIGNED_INT 0x1405
|
||||
%define GL_FLOAT 0x1406
|
||||
%define GL_HALF_FLOAT 0x140B
|
||||
|
||||
%define GL_RGBA 0x1908
|
||||
|
||||
%define GL_RGBA32F 0x8814
|
||||
%define GL_RGB32F 0x8815
|
||||
%define GL_RGBA16F 0x881A
|
||||
%define GL_RGB16F 0x881B
|
||||
|
||||
%define GL_VIEWPORT 0x0BA2
|
||||
%define GL_COLOR_ATTACHMENT0 0x8CE0
|
||||
Reference in New Issue
Block a user