News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

glNewList

Started by Farabi, August 18, 2005, 01:49:20 AM

Previous topic - Next topic

Farabi

1. Is glNewList function accept the polygon function on GLU.dll? And how to add a ligth on it? Is it just simply use glMaterialV?
2. Can OpenGL accept a integer value?
3. Any macro generated a float value? (for example invoke glColorf,$GenFPUValue(0.0),$GenFPUValue(0.4),$GenFPUValue(0.0).
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ninjarider

i know for sure in the glnewlist u can use glbindtexture, glcolor functions, glvertex functions, glnormal functions, and the gltexcoord functions. i know theres a couple of quadric functions that work but i would think the glnewlist wouldn't work with functions outside of the opengl library. goto opengl.org if u can.

Farabi

I did search it, but did not find anything. I want to made a cube with light.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ninjarider

do u want to use the opengl graphics library. or are u wanting to use your own.

Mark Jones

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Farabi

Quote from: ninjarider on August 18, 2005, 02:21:16 PM
do u want to use the opengl graphics library. or are u wanting to use your own.

I dont know what I should use. Maybe I should use glBeginPolygon, but how to use glBeginPolygon, I dont understand. I think I will listen to hitchickr and carefully read his tutorial so I can understand everything.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

hitchhikr

There is no function known as glBeginPolygon.

Regarding lists i made an example about how to use them with quadrics and home made objects but keep in mind that they're only made for static objects, if you want to modify the datas on the fly, use either the direct mode (glvertex3f etc.) or vertex arrays (faster).

The framework contains a macro called CFLT to generate floating points + some others.

The functions to work with integers values in ogl have a 'i' suffix ie. glColor3i instead of
glColor3f.

ninjarider

with glbeginpolygon would u be talking about glbegin gl_polygon

Farabi

Quote from: ninjarider on August 19, 2005, 12:18:07 PM
with glbeginpolygon would u be talking about glbegin gl_polygon

I dont know, I think glbegin is will be used. Except GLU have use glbegin in their .dll. I think it is confused programming to load an object. I think I will use available .dll for this. Or use the standard OpenGL object.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

hutch--

Farabi,

I moved this topic to the OpenGL forum so you would have a better chance of an answer.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php