i_Amwaj
i_Amwaj

Reputation: 51

what is the function that draw curves in opengl?

i want to know what are the functions in the opengl that allows me to draw curves ? cause i learned so far only Points , Lines and polygon . and i'm trying to draw cartoon character in my lab but i have to write that function whose allow me to draw curves .

Upvotes: 3

Views: 17885

Answers (1)

FogleBird
FogleBird

Reputation: 76812

OpenGL only supports points, lines and triangles.

https://www.opengl.org/wiki/Primitive

To draw curves you'll need to render multiple lines. (e.g. GL_LINE_STRIP)

See: OpenGL Coordinates from Bezier Curves

For drawing a "cartoon character" you might want to consider using textures instead, or a 3-D model.

Upvotes: 6

Related Questions