177 lines
4.8 KiB
NASM
177 lines
4.8 KiB
NASM
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
|
|
|
|
TITLE E:\Private\Frank\Code\blu-flame.org\4kgfx\stdafx.cpp
|
|
.686P
|
|
.XMM
|
|
include listing.inc
|
|
.model flat
|
|
|
|
INCLUDELIB MSVCRT
|
|
INCLUDELIB OLDNAMES
|
|
|
|
PUBLIC ?glShaderSource@@3P6GXIHPAPBDPBH@ZA ; glShaderSource
|
|
PUBLIC ?glCreateProgram@@3P6GIXZA ; glCreateProgram
|
|
PUBLIC ?glGenBuffers@@3P6GXHPAI@ZA ; glGenBuffers
|
|
PUBLIC ?glUseProgram@@3P6GXI@ZA ; glUseProgram
|
|
PUBLIC ?glBindBuffer@@3P6GXII@ZA ; glBindBuffer
|
|
PUBLIC ?glLinkProgram@@3P6GXI@ZA ; glLinkProgram
|
|
PUBLIC ?glVertexAttribPointer@@3P6GXIHIEHPBX@ZA ; glVertexAttribPointer
|
|
PUBLIC ?glCreateShader@@3P6GII@ZA ; glCreateShader
|
|
PUBLIC ?glEnableVertexAttribArray@@3P6GXI@ZA ; glEnableVertexAttribArray
|
|
PUBLIC ?glBindVertexArray@@3P6GXI@ZA ; glBindVertexArray
|
|
PUBLIC ?glMapBuffer@@3P6GPAXII@ZA ; glMapBuffer
|
|
PUBLIC ?glCompileShader@@3P6GXI@ZA ; glCompileShader
|
|
PUBLIC ?glUnmapBuffer@@3P6GEI@ZA ; glUnmapBuffer
|
|
PUBLIC ?glGetAttribLocation@@3P6GHIPBD@ZA ; glGetAttribLocation
|
|
PUBLIC ?glAttachShader@@3P6GXII@ZA ; glAttachShader
|
|
PUBLIC ?glBufferData@@3P6GXI_JPBXI@ZA ; glBufferData
|
|
PUBLIC ?glGenVertexArrays@@3P6GXHPAI@ZA ; glGenVertexArrays
|
|
PUBLIC ?currentProgramId@@3IA ; currentProgramId
|
|
PUBLIC ?MaxVertexBuffer@Mesh@@2HB ; Mesh::MaxVertexBuffer
|
|
PUBLIC ?MaxIndexBuffer@Mesh@@2HB ; Mesh::MaxIndexBuffer
|
|
_BSS SEGMENT
|
|
?glShaderSource@@3P6GXIHPAPBDPBH@ZA DD 01H DUP (?) ; glShaderSource
|
|
?glCreateProgram@@3P6GIXZA DD 01H DUP (?) ; glCreateProgram
|
|
?glGenBuffers@@3P6GXHPAI@ZA DD 01H DUP (?) ; glGenBuffers
|
|
?glUseProgram@@3P6GXI@ZA DD 01H DUP (?) ; glUseProgram
|
|
?glBindBuffer@@3P6GXII@ZA DD 01H DUP (?) ; glBindBuffer
|
|
?glLinkProgram@@3P6GXI@ZA DD 01H DUP (?) ; glLinkProgram
|
|
?glVertexAttribPointer@@3P6GXIHIEHPBX@ZA DD 01H DUP (?) ; glVertexAttribPointer
|
|
?glCreateShader@@3P6GII@ZA DD 01H DUP (?) ; glCreateShader
|
|
?glEnableVertexAttribArray@@3P6GXI@ZA DD 01H DUP (?) ; glEnableVertexAttribArray
|
|
?glBindVertexArray@@3P6GXI@ZA DD 01H DUP (?) ; glBindVertexArray
|
|
?glMapBuffer@@3P6GPAXII@ZA DD 01H DUP (?) ; glMapBuffer
|
|
?glCompileShader@@3P6GXI@ZA DD 01H DUP (?) ; glCompileShader
|
|
?glUnmapBuffer@@3P6GEI@ZA DD 01H DUP (?) ; glUnmapBuffer
|
|
?glGetAttribLocation@@3P6GHIPBD@ZA DD 01H DUP (?) ; glGetAttribLocation
|
|
?glAttachShader@@3P6GXII@ZA DD 01H DUP (?) ; glAttachShader
|
|
?glBufferData@@3P6GXI_JPBXI@ZA DD 01H DUP (?) ; glBufferData
|
|
?glGenVertexArrays@@3P6GXHPAI@ZA DD 01H DUP (?) ; glGenVertexArrays
|
|
?currentProgramId@@3IA DD 01H DUP (?) ; currentProgramId
|
|
_BSS ENDS
|
|
; COMDAT ?MaxIndexBuffer@Mesh@@2HB
|
|
CONST SEGMENT
|
|
?MaxIndexBuffer@Mesh@@2HB DD 048000H ; Mesh::MaxIndexBuffer
|
|
CONST ENDS
|
|
; COMDAT ?MaxVertexBuffer@Mesh@@2HB
|
|
CONST SEGMENT
|
|
?MaxVertexBuffer@Mesh@@2HB DD 010000H ; Mesh::MaxVertexBuffer
|
|
CONST ENDS
|
|
screenSettings SEGMENT
|
|
_screenSettings DB 00H
|
|
ORG $+31
|
|
DW 00H
|
|
DW 00H
|
|
DW 07cH
|
|
DW 00H
|
|
DD 01c0000H
|
|
DW 00H
|
|
ORG $+14
|
|
DW 00H
|
|
DW 00H
|
|
DW 00H
|
|
DW 00H
|
|
DW 00H
|
|
DB 00H
|
|
ORG $+31
|
|
DW 00H
|
|
DD 020H
|
|
DD 0500H
|
|
DD 02d0H
|
|
DD 00H
|
|
DD 00H
|
|
screenSettings ENDS
|
|
PUBLIC ?compileShader@@YAIPBD0@Z ; compileShader
|
|
; Function compile flags: /Ogspy
|
|
; File e:\private\frank\code\blu-flame.org\4kgfx\ogl3.h
|
|
compile SEGMENT
|
|
_vsh$ = 8 ; size = 4
|
|
_fsh$ = 12 ; size = 4
|
|
?compileShader@@YAIPBD0@Z PROC ; compileShader
|
|
|
|
; 36 : {
|
|
|
|
push esi
|
|
push edi
|
|
|
|
; 37 : GLuint s,p;
|
|
; 38 : p = glCreateProgram();
|
|
|
|
call DWORD PTR ?glCreateProgram@@3P6GIXZA ; glCreateProgram
|
|
|
|
; 39 : s = glCreateShader(GL_VERTEX_SHADER);
|
|
|
|
push 35633 ; 00008b31H
|
|
mov esi, eax
|
|
call DWORD PTR ?glCreateShader@@3P6GII@ZA ; glCreateShader
|
|
mov edi, eax
|
|
|
|
; 40 : glShaderSource(s, 1, &vsh, NULL);
|
|
|
|
push 0
|
|
lea eax, DWORD PTR _vsh$[esp+8]
|
|
push eax
|
|
push 1
|
|
push edi
|
|
call DWORD PTR ?glShaderSource@@3P6GXIHPAPBDPBH@ZA ; glShaderSource
|
|
|
|
; 41 : glCompileShader(s);
|
|
|
|
push edi
|
|
call DWORD PTR ?glCompileShader@@3P6GXI@ZA ; glCompileShader
|
|
|
|
; 42 : glAttachShader(p, s);
|
|
|
|
push edi
|
|
push esi
|
|
call DWORD PTR ?glAttachShader@@3P6GXII@ZA ; glAttachShader
|
|
|
|
; 43 : s = glCreateShader(GL_FRAGMENT_SHADER);
|
|
|
|
push 35632 ; 00008b30H
|
|
call DWORD PTR ?glCreateShader@@3P6GII@ZA ; glCreateShader
|
|
mov edi, eax
|
|
|
|
; 44 : glShaderSource(s, 1, &fsh, NULL);
|
|
|
|
push 0
|
|
lea eax, DWORD PTR _fsh$[esp+8]
|
|
push eax
|
|
push 1
|
|
push edi
|
|
call DWORD PTR ?glShaderSource@@3P6GXIHPAPBDPBH@ZA ; glShaderSource
|
|
|
|
; 45 : glCompileShader(s);
|
|
|
|
push edi
|
|
call DWORD PTR ?glCompileShader@@3P6GXI@ZA ; glCompileShader
|
|
|
|
; 46 : glAttachShader(p, s);
|
|
|
|
push edi
|
|
push esi
|
|
call DWORD PTR ?glAttachShader@@3P6GXII@ZA ; glAttachShader
|
|
|
|
; 47 : glLinkProgram(p);
|
|
|
|
push esi
|
|
call DWORD PTR ?glLinkProgram@@3P6GXI@ZA ; glLinkProgram
|
|
|
|
; 48 : glUseProgram(p);
|
|
|
|
push esi
|
|
call DWORD PTR ?glUseProgram@@3P6GXI@ZA ; glUseProgram
|
|
pop edi
|
|
|
|
; 49 : return p;
|
|
|
|
mov eax, esi
|
|
pop esi
|
|
|
|
; 50 : };
|
|
|
|
ret 0
|
|
?compileShader@@YAIPBD0@Z ENDP ; compileShader
|
|
compile ENDS
|
|
END
|