- vp1_lab1_1.zip
- vp1_lab1_1
- include
- readme.txt
- sample_images
- flipper.html
- line_thickness.gif
- test5_1.png
- test5_2.png
- test5_3.png
- test6_1.png
- test6_4.png
- test6_5.png
- test6_6.png
- test6_7.png
- test6_99.png
- test7.png
- test7_1.png
- test7_2.png
- test8_1.png
- samples
- win32
- test5.exe
- test6.exe
- test8.exe
- X11
|
using the code:
just include vase_rend_draft_2.h to your project files and it should work.
to test by drawing a spectrum:
for ( int i=0; i<20; i++)
{
line ( 5+29.7*i,187, 35+29.7*i,8, //coordinates
0.3*(i+1), //thickness in px
0.5, 0.0, 1.0, 1.0, //color RGBA
0,0, //not used
true); //enable alphablend
}
more info at:
http://www.codeproject.com/KB/openGL/gllinedraw.aspx
http://artgrammer.blogspot.com/2011/05/drawing-nearly-perfect-2d-line-segments.html
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Chris H.F. Tsang
tyt2y3@gmail.com