Author Topic: OpenGL in masm64  (Read 1939 times)

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #90 on: May 30, 2020, 02:17:19 AM »
This program shows how to draw anti-aliased lines. It draws two diagonal lines to form an X when 'r' or 'R' is typed in the window, the lines are rotated in opposite directions. A prototype is aargb.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 30, 2020, 09:04:02 AM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #91 on: May 30, 2020, 12:49:50 PM »
A prototype is "Spot Light" by Franck Charlet. There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 30, 2020, 11:13:16 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #92 on: May 30, 2020, 10:48:25 PM »
Stainless steel cylinder. A prototype is "Sphere Mapping" by Franck Charlet. There are asm-file, cursor, bmp-file for texture and exe-file in the attachment.
« Last Edit: June 01, 2020, 04:00:10 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #93 on: May 31, 2020, 12:02:26 AM »
This program texture maps a checkerboard image onto two rectangles. This program clamps the texture, if the texture coordinates fall outside 0.0 and 1.0. A prototype is checker.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #94 on: May 31, 2020, 11:57:30 AM »
This program shows how to composite modeling transformations to draw translated and rotated hierarchical models.  A prototype is robot.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
Interaction: pressing the "s", "S", "E" and "e" keys (shoulder and elbow) alters the rotation of the robot arm.

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #95 on: May 31, 2020, 09:47:27 PM »
Graphic primitives. This program demonstrates polygon tessellation. Two tesselated objects are drawn. The first is a rectangle with a triangular hole. The second is a smooth shaded, self-intersecting star. Note the exterior rectangle is drawn with its vertices in counter-clockwise order, but its interior clockwise. Note the combineCallback is needed for the self-intersecting star. Also note that removing the TessProperty for the star will make the interior unshaded (WINDING_ODD). A prototype is tess.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: June 01, 2020, 04:10:18 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #96 on: June 03, 2020, 08:09:47 PM »
It is a small holiday today - I have 900-th post in masm32.com forum It’s a pity that there is no feedback ...

TimoVJL

  • Member
  • ****
  • Posts: 517
Re: OpenGL in masm64
« Reply #97 on: June 04, 2020, 12:38:46 AM »
Congratulations :biggrin:
I watched a some of a your examples :thumbsup:
May the source be with you

jj2007

  • Member
  • *****
  • Posts: 10273
  • Assembler is fun ;-)
    • MasmBasic
Re: OpenGL in masm64
« Reply #98 on: June 04, 2020, 01:09:21 AM »
It’s a pity that there is no feedback ...

Dear Mikl,

Congrats to your 900th post  :thumbsup:

There is no feedback because we are watching with awe what you produce every day. Most of us are simply not able to follow you... sincere compliments, this is great stuff :thup:

felipe

  • Member
  • *****
  • Posts: 1282
  • Eagles are just great!
Re: OpenGL in masm64
« Reply #99 on: June 04, 2020, 01:20:41 AM »
Most of us are simply not able to follow you...

That's my case too, especially because i just don't have the time  :sad:. But let me tell you: you have done a great job!  :greenclp:.
Felipe.

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #100 on: June 04, 2020, 06:12:22 PM »
Hi, TimoVJL, jj2007, felipe!
Thanks a lot!
There are asm-file, cursor, raw-file for texture and exe-file in the attachment
Interaction:
  • left mouse clicks ― rotation about x-axis
  • right mouse clicks ― rotation about y-axis
Hi, hutch--!
I will can make a planet with only one continent "Australia" and a satellite of such a planet with the continent "New Zealand" I feel myself the creator of the universe!
« Last Edit: Today at 10:23:02 AM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 903
Re: OpenGL in masm64
« Reply #101 on: June 05, 2020, 04:11:04 PM »
There is where to strive for something