Draw image from text file using OpenGL [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have a text file containing the vertices of a triangle. I would like to draw this triangle in an OpenGL window; however, I am quite new to OpenGL and am not sure where to get started.
Can anyone point me in the right direction or provide a general outline as to how I might get started with this problem? Thanks in advance for any help.

This should help you.

Related

Display image in console application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am writing a program, and I thought that it would be better with images (I am creating console application). So I want to know if it's possible? And if it is how can I do it? Thanks.
You can do it by ASCII art, There are many open source libraries which convert image to ASCIIs, such as libcaca.
And if you want use colored images, you can use rlutil.
Consoles are designed to display characters only. With some very crude exceptions it is not possible to display images unless you open another window.

Construct wireframe model of a face image [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to write a program that will construct a wire-frame model of a face image and display it as 3d. Can any body help me about how to do this ?
I have some knowledge about opencv and opengl

HOW to understand custom drawn ? Which tools can I use? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to know the tools that beautiful UI programs using?
You're going to have to ask a better question. What platform are you targeting? What framework are you using? "Beautiful" is in the eye of the beholder.

Water particle model [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to design a physical particle system in order to model/simulate a flowing water on a terrain. I want to use C (maybe C++) in order to do that. Do you guys know any good examples or a good starting point to do this?Thank you!
maybe can be useful Fluid simulation library

How do you get vertex buffer of mesh? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How to get vertex information of mesh?
If you mean from an ID3DXMesh then its just a matter of calling GetVertexBuffer and GetIndexBuffer. To get additional information, such as the vertex structure, you can call GetDescription. Finally to get the information about how the mesh should be rendered (such as which verts use the same material) the information can be obtained by calling GetAttributeTable. You do, though, need to know which attribute id maps to which texture.