News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Almost dead?

Started by Farabi, June 30, 2009, 08:44:05 AM

Previous topic - Next topic

UtillMasm

it's for GoASM.
i need MASM version.

Farabi

Quote from: UtillMasm on October 31, 2009, 06:04:26 AM
it's for GoASM.
i need MASM version.

Put the .lib on masm32/lib/ and put the include file on the /masm32/include and it will work.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

Updated.

Replace fDrawTri with this

Quote
fDrawTri proc uses esi edi lpfTri:dword,nFlag:dword
   LOCAL nIndex:dword
   LOCAL texture:dword
   
   mov esi,lpfTri
   
   push 0
   pop texture
   .if [esi].fTri.TexID!=0
      invoke glEnable,GL_TEXTURE_2D
      invoke glBindTexture,GL_TEXTURE_2D,[esi].fTri.TexID
      push 1
      pop texture
   .endif
   
   invoke glEnableClientState,GL_VERTEX_ARRAY
   invoke glEnableClientState,GL_NORMAL_ARRAY
   invoke glEnableClientState,GL_TEXTURE_COORD_ARRAY
      
      invoke glVertexPointer,3,GL_FLOAT,0,[esi].fTri.lpVertex
      invoke glNormalPointer,GL_FLOAT,0,[esi].fTri.lpNormals
      invoke glTexCoordPointer,2,GL_FLOAT,0,[esi].fTri.lpTextC
      invoke glDrawArrays,GL_TRIANGLES,0,[esi].fTri.nVertex
      
   invoke glDisableClientState,GL_VERTEX_ARRAY
   invoke glDisableClientState,GL_NORMAL_ARRAY
   invoke glDisableClientState,GL_TEXTURE_COORD_ARRAY
   invoke glBindTexture,GL_TEXTURE_2D,0
   
   ret

fDrawTri endp

Shorter and faster.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

UtillMasm

#48
 :wink

sir, i'm still stop there.

can you give me all your files, include masm32, Donkey's Graphics lib & inc ...

Farabi

Here is the file. Place it on your MASM32 folder.

Graphics.lib : Put it on masm32\Lib\
Graphics.inc : Put it on masm32\Include\
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

UtillMasm

C:\MASM32\Include\glu32.incgluLookAt proto:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword
C:\Farabi - Almost dead\fGameEngine\Camera.asmCamera_LookAt proc
  local _View_Position:VERTEX
  invoke Vec_Add,addr _View_Position,addr _Camera_Position,addr _Camera_View
  invoke gluLookAt,FLT2DBL(_Camera_Position.x),FLT2DBL(_Camera_Position.y),FLT2DBL(_Camera_Position.z),FLT2DBL(_View_Position.x),FLT2DBL(_View_Position.y),FLT2DBL(_View_Position.z),FLT2DBL(_Camera_Up.x),FLT2DBL(_Camera_Up.y),FLT2DBL(_Camera_Up.z)
  ret
Camera_LookAt endp
MASM v6.14.8444 Assembling: fGameEngine.asm
camera.asm(216) : error A2137: too few arguments to INVOKE
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 9
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 8
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 7
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 6
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 5
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 4
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 3
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 2
camera.asm(216) : error A2114: INVOKE argument type mismatch : argument : 1

oex

Does it moan if you change:

gluLookAt proto:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword,:dword

to

gluLookAt proto :qword,:qword,:qword,:qword,:qword,:qword,:qword,:qword,:qword

?
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

UtillMasm

i guess my masm32 include file maybe wrong(sorry hutch).
i need Farabi's file.

Farabi

I used the glu.inc not glu32.inc include file and glu32.lib file. And nothing is wrong here.

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

UtillMasm

 :U
many thanks to Farabi TM!
C:\Farabi - Almost dead\fGameEngine\fGameEngine.cmd

@echo off
\masm32\bin\rc.exe /fofGameEngine.res fGameEngine.rc
\masm32\bin\ml.exe /c /coff /FofGameEngine.obj /nologo fGameEngine.asm
\masm32\bin\link.exe /subsystem:windows /out:fGameEngine.exe fGameEngine.obj fGameEngine.res /nologo
pause

C:\Windows\System32\cmd.exe

Assembling: fGameEngine.asm
PhysicEngine.inc(48) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(49) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(50) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(51) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(52) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(53) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(54) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(55) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(56) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(57) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(58) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(59) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(60) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(61) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(62) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(63) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(64) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(65) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(66) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(67) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(68) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(69) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(70) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(71) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(72) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(73) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(74) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(75) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(76) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(77) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(78) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(79) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(80) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(81) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(82) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(83) : warning A4014: instructions and initialized data not supp
orted in BSS segments
PhysicEngine.inc(84) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(175) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(176) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(178) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(179) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(180) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(181) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(182) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(183) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(185) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(187) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(188) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(189) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(190) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(191) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(193) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(196) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(197) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(198) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(200) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(201) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(203) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(204) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(206) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(207) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(208) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(209) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(210) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(211) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(213) : warning A4014: instructions and initialized data not supp
orted in BSS segments
fGameEngine.asm(214) : warning A4014: instructions and initialized data not supp
orted in BSS segments
LINK : warning LNK4089: all references to "msvcrt.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "msvfw32.dll" discarded by /OPT:REF
Press any key to continue . . .

thanks, let's study it. :boohoo:

Farabi

That mean it is working on your now right? If so, I will wait your progress. If found something you dont understand please ask.

Here is my map design.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

UtillMasm


dedndave

looks very cool Onan   :U