The MASM Forum

General => The Campus => Topic started by: gelatine1 on September 14, 2015, 07:50:56 PM

Title: DirectX/OpenGL in assembly
Post by: gelatine1 on September 14, 2015, 07:50:56 PM
Hello

ANyone who could suggest an DirectX/OpenGL (I prefer to learn DirectX) tutorial in assembly. I'd like to learn about it but im not sure about where to find information about it.

Thanks in advance
Jannes
Title: Re: DirectX/OpenGL in assembly
Post by: Mikl__ on September 14, 2015, 08:24:38 PM
http://netlib.narod.ru/library/book0032/index.htm
http://www.ics.uci.edu/~gopi/CS211B/opengl_programming_guide_8th_edition.pdf
Title: Re: DirectX/OpenGL in assembly
Post by: Zen on September 15, 2015, 05:22:41 AM
GELATINE1, 
There is some interest here at the MASM Forum in both COM and DirectX. However, I have never seen a tutorial written specifically for assembly programmers about DirectX.
Here is a thread from the Old MASM Forum: DirectX 11 SDK, April 2012 (http://www.masmforum.com/board/index.php?topic=18761.0). Scroll down about halfway, and you will see a zip archive included with one of the posts, that contains MASM compatible include files for DirectX 11.
Title: Re: DirectX/OpenGL in assembly
Post by: anta40 on September 15, 2015, 12:10:39 PM
For OpenGL, the canonical one would be probably NeHe's (http://nehe.gamedev.net/)
Check out the "Legacy Tutorials". Most of them have MASM32 examples.
Title: Re: DirectX/OpenGL in assembly
Post by: gelatine1 on September 15, 2015, 09:37:20 PM
Hi, thanks for the replies. Mikl that first link is completely in russian and I am afraid i do not understand that. The second link seems more interesting but it seems to be using GLEW and GLUT to process the windows and stuff so in assembly i don't want to use those. It still is interesting to make me understand the concepts.
Zen, usually a C/C++ guide is good enough because most of it can be translated to assembly. Ill take a look for the include files.
Anta40, thanks alot I think these legacy tutorials seem much more promising to what i want than the openGL guide posted by Mikl (after a quick glance at them).
Title: Re: DirectX/OpenGL in assembly
Post by: Zen on September 16, 2015, 07:02:36 AM
Hi, GELATINE1,
An excellent source listing of books about graphics and DirectX is here: Real-Time Rendering Graphics Books Page (http://www.realtimerendering.com/books.html). If you scroll down the page about half way you will see a number of books about DirectX and Shaders that you can download for free.
All the DirectX programming I ever did was in C++ with Visual Studio,...which is much more convenient than programming DirectX in MASM assembly language. However, converting the concepts of DirectX from C++ to assembly is fairly simple,...the only real difficulty is the lack of include files in the MASM package. But, converting from C++ headers to MASM compatible include files is straightforward.
TOUTENMASM has a translator for the SDK header files here:  A translator for sdk header files (64 and 32 bits translate) (http://masm32.com/board/index.php?topic=576.msg4665). Yves has posted a complete translation of all the header files in the SDK. Here it is: Full SDK 8.1 translate for 64 and 32 bits (http://masm32.com/board/index.php?topic=563.msg4563#msg4563)
http://luce.yves.pagesperso-orange.fr/sdkrc81.zip (http://luce.yves.pagesperso-orange.fr/sdkrc81.zip)
Title: Re: DirectX/OpenGL in assembly
Post by: FORTRANS on September 16, 2015, 10:46:21 PM
Hi,

   Amusing, I have "OpenGL Programming Guide: The Official Guide
to Learning OpenGL, Release 1" and most things are different in
some way.  Different authors, table of contents, and copyright
holder for instance.  The picture on the cover is the same though.

Cheers,

Steve N.
Title: Re: DirectX/OpenGL in assembly
Post by: farrier on September 16, 2015, 11:31:12 PM
You might want to check posts made by madmatt on the flatassembler.net

http://board.flatassembler.net/index.php

The code is fasm style, but easily translated.

hth,

farrier