Click to See Complete Forum and Search --> : The fastest way to draw a fill quadrilateral?
Demokritos
November 11th, 2003, 06:31 AM
What is the fastest way to draw a fill quadrilateral ?
They are not parallelograms. We have the cordinates.
The outline has different color than inside.
The Graphic mode can be BlackWhite or FullColor.
bubu
November 12th, 2003, 10:03 PM
You want the algo?
If not, why don't you try OpenGL?
OpenGL is cross-plataform compatible and also use hardware acceleration (when avaliable)...
Demokritos
November 13th, 2003, 03:39 AM
I was hopping that there is a little piece of code of DirectX or OpenGL or some special techniques in C# I could past to my rest source code because I don't know DirectX or OpenGL not at all.
Demokritos
November 13th, 2003, 03:52 AM
I forgot to tell that fill quadrilaterals are plane shapes.
I don't need rotation or other tansformations. Only to display them when I know the cordinates and the color of outline and inside.
bubu
November 13th, 2003, 11:50 PM
The best OpenGL lessons I ever saw are at Nehe's OpenGL site. It teaches you to make OpenGL graphics out of no knoledge! I could draw, rotate, fill and move 2D and 3D shapes with less than 2 hours of reading!!! It has source code for it's lessons in more than 10 programming languages.
http://nehe.gamedev.net/lesson.asp?index=01
Good luck.. If there are any questions you can ask me!
Doctor Luz
November 14th, 2003, 07:56 AM
What is the necessity to kill a fly with cannon shots?
If you only need to display some quadrilaterals I think you can use simple GDI calls (for example PolyPoligon()) instead of a complicated system based on OpenGL because you won't notice any difference.
The code will be much shorter than coding with OpenGL.
However if your application must do some other complicated tasks you may use OpenGL.
Demokritos
November 14th, 2003, 06:01 PM
bubu this site is perfect and I'm sure I will find there exactly what I need! Thank you very much for your help!
Doctor Luz I want to write a math program which displays on the screen a very large number of full quadrilateral shapes creating a mesh.
I find the cordinates of the four peaks for each shape and display them creating a mesh. Next I calculate new cordinates for each shape and display a new mesh.
It happens continuously as faster as possible.
Now I think I have found the solution thanks to bubu.
Doctor Luz
November 14th, 2003, 07:18 PM
Originally posted by Demokritos
bubu this site is perfect and I'm sure I will find there exactly what I need! Thank you very much for your help!
Doctor Luz I want to write a math program which displays on the screen a very large number of full quadrilateral shapes creating a mesh.
I find the cordinates of the four peaks for each shape and display them creating a mesh. Next I calculate new cordinates for each shape and display a new mesh.
It happens continuously as faster as possible.
Now I think I have found the solution thanks to bubu.
That is rather different than the original question "What is the fastest way to draw a fill quadrilateral ?"
Please the next time you post a question provide a full description of your problem.
well, if that is the purpose of your application then OpenGL may be more appropiate than simple GDI calls.
Demokritos
November 14th, 2003, 08:38 PM
O.K. Thanks again.
codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.