Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Stupid Newbie Question...GLUT

bgibbybgibby Member Posts: 251
[b][red]This message was edited by the bgibby at 2002-6-20 21:51:41[/red][/b][hr]
Hi there,

Forgive my lack of knowledge about this but when I draw say four lines and make a square (yes, yes I know there is another way, but just say it was a polygon with 700 sides or something).

My question, how the hell do I fill it with a colour without having to get every single vertex within the area and setting it's colour to white for example?

I've heard of Map and EvalMesh and stuff but I don't know what they do.

ANY help would be greatly appreciated!

Bradley q:)


Hi again,

I just tried nesting the vertecies within a glBegin(GL_POLYGON); and it worked. It filled all the points properly.

But I'm still wondering, is this the best / correct / most efficient way to do it as it's starting to chug a bit that's all!

Thanks again!

[ END ]


  • Andre YoungAndre Young USAMember Posts: 0

    ______ | | free video tutorials and ebooks about < Swift Python Scratch Ruby PHP PL/SQL C# Visual Basic .NET C Assembly Objective-C Java Delphi C++ JavaScript R Visual Basic Go MATLAB Perl Julia Scala VBScript Scheme Bash FoxPro ABAP Logo Crystal D ML Erlang Fortran Lisp Awk F# COBOL Alice Dart Rust Transact-SQL Prolog SAS Apex LabVIEW Clojure Ada Kotlin Hack Lua /> _______

Sign In or Register to comment.