News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

DirectX/OpenGL in assembly

Started by gelatine1, September 14, 2015, 07:50:56 PM

Previous topic - Next topic

gelatine1

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

Mikl__

http://netlib.narod.ru/library/book0032/index.htm
http://www.ics.uci.edu/~gopi/CS211B/opengl_programming_guide_8th_edition.pdf

Zen

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. 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.

anta40

For OpenGL, the canonical one would be probably NeHe's
Check out the "Legacy Tutorials". Most of them have MASM32 examples.

gelatine1

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).

Zen

Hi, GELATINE1,
An excellent source listing of books about graphics and DirectX is here: Real-Time Rendering Graphics Books Page. 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). 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://luce.yves.pagesperso-orange.fr/sdkrc81.zip

FORTRANS

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.

farrier

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