![]() GlColorPointer( 3, GL_FLOAT, 0, para_color) GlVertexPointer( 2, GL_FLOAT, 0, para_vertex) ![]() ![]() If you copy only part of the code, make sure you also copy the function. You can just include the header vase_rend_draft_2.h and it should work. I provide this in case you do not need all the functionalities. You can optionally use alpha blend otherwise, it assumes the background is white. The second function hair_line() draws near-perfectly a black "hair line" of thickness 1px with no color or thickness control. ![]() The below image should tell you what alphablend=false means: In no- alpha- blending mode, you still get good results when the background is solid and lines are not dense. You can choose not to use alpha blending by setting alphablend to false in this case, you will get color fading to the background. The first function line() gives you all the functionality. Void hair_line( double x1, double y1, double x2, double y2, bool alphablend= 0) Br=alpha of color when alphablend=trueīool alphablend) //use alpha blend or not ![]() Void line( double x1, double y1, double x2, double y2, //coordinates of the lineįloat w, //width/thickness of the line in pixelįloat Cr, float Cg, float Cb, //RGB color componentsįloat Br, float Bg, float Bb, //color of background when alphablend=false, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |