Author Topic: OpenGL in masm64  (Read 4765 times)

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #15 on: May 02, 2020, 05:45:59 PM »
Converted example from the tutorial Igor Tarasov "OpenGL Fundamentals" lamps.c There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:24:19 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #16 on: May 02, 2020, 05:47:15 PM »
This program demonstrates some characters of a stroke (vector) font. The characters are represented by display lists, which are given numbers which correspond to the ASCII values of the characters. Use of glCallLists() is demonstrated. A prototype is stroke.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:24:30 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #17 on: May 02, 2020, 05:49:03 PM »
This is a simple, introductory OpenGL program. A prototype is hello.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:24:42 PM by Mikl__ »

caballero

  • Member
  • *****
  • Posts: 1450
  • Matrix - Noah
    • abre ojos ensamblador
Re: OpenGL in masm64
« Reply #18 on: May 02, 2020, 05:55:06 PM »
Very interesting, Mikl  :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

mabdelouahab

  • Member
  • ***
  • Posts: 450
Re: OpenGL in masm64
« Reply #19 on: May 03, 2020, 01:49:42 AM »
 :thumbsup:

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #20 on: May 03, 2020, 02:13:13 PM »
This program demonstrates the use of the GL lighting model. Several objects are drawn using different material characteristics. A single light source illuminates the objects. A prototype is material.c from https://www.opengl.org/archives/resources/code/samples/redbook/ . There are asm-file, cursor and exe-file in the attachment. May be need glut32.dll It is in attachment too
« Last Edit: May 21, 2020, 12:25:06 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #21 on: May 03, 2020, 05:48:52 PM »
This program uses evaluators to draw a Bezier curve. A prototype is bezcurve.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:25:19 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #22 on: May 03, 2020, 07:02:49 PM »
This program demonstrates how to make and execute a display list. Note that attributes, such as current color and matrix, are changed.
A prototype is list.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:25:30 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #23 on: May 03, 2020, 11:57:36 PM »
This program demonstrates geometric primitives and their attributes. A prototype is lines.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:25:39 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #24 on: May 04, 2020, 01:05:17 AM »
Converted example from the tutorial Igor Tarasov "OpenGL Fundamentals" primitive.c There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:25:55 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #25 on: May 05, 2020, 11:12:10 AM »
Converted example from the tutorial Igor Tarasov "OpenGL Fundamentals" sphere2.c There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:26:13 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #26 on: May 07, 2020, 01:55:34 PM »
This program demonstrates the use of some of the gluQuadric* routines. Quadric objects are created with some quadric properties and the callback routine to handle errors. Note that the cylinder has no top or bottom and the circle has a hole in it. A prototype is quadric.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:26:25 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #27 on: May 07, 2020, 02:01:04 PM »
Converted example from the tutorial Igor Tarasov "OpenGL Fundamentals" quadric.c There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:26:43 PM by Mikl__ »

Siekmanski

  • Member
  • *****
  • Posts: 2253
Re: OpenGL in masm64
« Reply #28 on: May 07, 2020, 02:18:58 PM »
Cool examples!  :cool:
Creative coders use backward thinking techniques as a strategy.

Mikl__

  • Member
  • ****
  • Posts: 958
Re: OpenGL in masm64
« Reply #29 on: May 07, 2020, 02:53:10 PM »
This program demonstrates the use of the OpenGL lighting model. A sphere is drawn using a grey material characteristic. A single light source illuminates the object. A prototype is light.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:26:57 PM by Mikl__ »