I'm using GLScene and have a problem with working GLDirectOPenGL. I want to draw a tringle on a scene but It draw only 3 edge of tringle and cannot to colorise the tringle. As you can see the trinanle has dot style that I dont want and not colorised.
procedure TMain.GLDirectOpenGL1Render(Sender: TObject; var rci: TRenderContextInfo);
begin
gl.Begin_ (GL_TRIANGLES);
gl.Color4f ( 1,0,0,1); gl.Vertex3f( -0.13, 0.16,0.15 );
gl.Color4f ( 0,0,1,1); gl.Vertex3f( -0.61, 0.31,0.15 );
gl.Color4f ( 0,1,0,1); gl.Vertex3f( -0.5, 0.15,-0.1 );
gl.End_;
end;