Author Topic: OpenGL in masm64  (Read 4762 times)

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #30 on: May 07, 2020, 04:15:26 PM »
After initialization, the program will be in ColorMaterial mode. Interaction: pressing the mouse buttons will change the diffuse reflection values.
A prototype is colormat.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:22:46 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #31 on: May 07, 2020, 05:31:24 PM »
Flying and rotating cubes. There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:22:59 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #32 on: May 07, 2020, 06:48:46 PM »
This program demonstrates the use of the GL lighting model. Objects are drawn using a blue material characteristic. A single light source illuminates the objects. A prototype is scene.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:23:09 PM by Mikl__ »

six_L

  • Member
  • **
  • Posts: 175
Re: OpenGL in masm64
« Reply #33 on: May 08, 2020, 12:51:25 AM »
GLUT32.DLL

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #34 on: May 08, 2020, 09:43:05 AM »
Hi, six_L!
Thank you very much, but I uploaded GLUT32.DLL in Replay #20

This program demonstrates when to issue lighting and transformation commands to render a model with a light which is moved by a modeling transformation (rotate or translate). The light position is reset after the modeling transformation is called. The eye position does not change. A sphere is drawn using a grey material characteristic. A single light source illuminates the object. Interaction: pressing the left mouse button alters the modeling transformation (x rotation) by 30 degrees. The scene is then redrawn with the light in a new position.
A prototype is movelight.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:23:21 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #35 on: May 08, 2020, 05:50:44 PM »
A prototype is OpenGL.asm by Franck Charlet from masm32\examples64\opengl There are asm-file, cursor and exe-file in the attachment.
hutch--
please correct, you have a 32-bit program in examples64
« Last Edit: May 21, 2020, 12:23:51 PM by Mikl__ »

jj2007

  • Member
  • *****
  • Posts: 10438
  • Assembler is fun ;-)
    • MasmBasic
Re: OpenGL in masm64
« Reply #36 on: May 08, 2020, 06:31:00 PM »
Hi Mikl,

You are posting great stuff :thumbsup:

Excuse my ignorance: OpenGL does not have anti-aliasing like Gdi+?

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #37 on: May 08, 2020, 06:37:49 PM »
Ciao, jj2007
non lo so ancora. Ho iniziato a studiare OpenGL solo due settimane e non so tutte le complessità di questo sistema

six_L

  • Member
  • **
  • Posts: 175
Re: OpenGL in masm64
« Reply #38 on: May 08, 2020, 06:52:42 PM »
Hi,Mikl__
nice work!
sorry, i did not pay attention to the GLUT32.DLL in Replay #20

jj2007

  • Member
  • *****
  • Posts: 10438
  • Assembler is fun ;-)
    • MasmBasic
Re: OpenGL in masm64
« Reply #39 on: May 08, 2020, 10:48:41 PM »
Ciao, jj2007
non lo so ancora. Ho iniziato a studiare OpenGL solo due settimane e non so tutte le complessità di questo sistema

Complimenti per il tuo italiano ;-)

I am looking forward to your next posts, Mikl :thumbsup:

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #40 on: May 08, 2020, 11:06:36 PM »
ho provato Presto si dice una fiaba, ma si fa una cosa non presto (Скоро сказка сказывается, да не скоро дело делается)
« Last Edit: May 16, 2020, 10:58:00 AM by Mikl__ »

HSE

  • Member
  • *****
  • Posts: 1342
  • <AMD>< 7-32>
Re: OpenGL in masm64
« Reply #41 on: May 09, 2020, 02:15:36 AM »
Hi Mikl__!




Sorry, just now I realize that is for fasm  :biggrin: :biggrin:

ml64 don't allow movf8.

Regards. HSE

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #42 on: May 09, 2020, 02:27:03 AM »
Hi, HSE!
you need file %masm64_path%include\opengl32.inc and %masm64_path%include\win64a.inc

caballero

  • Member
  • *****
  • Posts: 1450
  • Matrix - Noah
    • abre ojos ensamblador
Re: OpenGL in masm64
« Reply #43 on: May 09, 2020, 02:41:54 AM »
Mikl, we want more!
Mikl, we want more!
Mikl, we want more!
Mikl, we want more!
Mikl, we want more!
Mikl, we want more!

 :biggrin:  :greenclp:

By the way, I think there's in this forum all the folders and files to compile with ml64, but I dont't find it... Do you mind if...
The logic of the error is hidden among the most unexpected lines of the program

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #44 on: May 09, 2020, 02:56:16 AM »
¡Buena noches caballero!
Mira aqui
presta atención al mensaje número 8
« Last Edit: May 09, 2020, 10:48:32 AM by Mikl__ »