|
@@ -21,7 +21,7 @@ uses
|
|
|
GLScene.OpenGLTokens,
|
|
|
GLScene.VectorTypes,
|
|
|
GLScene.VectorGeometry,
|
|
|
- GLS.Color,
|
|
|
+ GLScene.Color,
|
|
|
GLS.Context,
|
|
|
GLS.State;
|
|
|
|
|
@@ -121,9 +121,9 @@ type
|
|
|
procedure FillRect(const x1, y1, x2, y2: Single); overload;
|
|
|
// Draw the (x1,y1)-(x2, y2) rectangle (filled with given gradient's color).
|
|
|
procedure FillRectGradient(const x1, y1, x2, y2: Single;
|
|
|
- const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGLColorVector); overload;
|
|
|
+ const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGColorVector); overload;
|
|
|
procedure FillRectGradient(const x1, y1, x2, y2: Integer;
|
|
|
- const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGLColorVector); overload;
|
|
|
+ const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGColorVector); overload;
|
|
|
// Draws an ellipse with (x1,y1)-(x2, y2) bounding rectangle.
|
|
|
procedure EllipseBB(const x1, y1, x2, y2: Integer); overload;
|
|
|
procedure EllipseBB(const x1, y1, x2, y2: Single); overload;
|
|
@@ -139,11 +139,11 @@ type
|
|
|
OpenGL will use the last PenColor and PenAlpha as the center color and do gradient
|
|
|
to edge of ellipse using the edgeColor parameter. *)
|
|
|
procedure FillEllipseGradient(const x, y, xRadius, yRadius: Single;
|
|
|
- const edgeColor: TGLColorVector); overload;
|
|
|
+ const edgeColor: TGColorVector); overload;
|
|
|
procedure FillEllipseGradient(const x, y: Integer;
|
|
|
- const xRadius, yRadius: Integer; const edgeColor: TGLColorVector); overload;
|
|
|
+ const xRadius, yRadius: Integer; const edgeColor: TGColorVector); overload;
|
|
|
procedure FillEllipseGradient(const x, y, Radius: Single;
|
|
|
- const edgeColor: TGLColorVector); overload;
|
|
|
+ const edgeColor: TGColorVector); overload;
|
|
|
(* Draw an elliptical arc.
|
|
|
The points (x1, y1) and (x2, y2) specify the bounding rectangle.
|
|
|
An ellipse formed by the specified bounding rectangle defines the curve of the arc.
|
|
@@ -523,7 +523,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
procedure TGLCanvas.FillRectGradient(const x1, y1, x2, y2: Single;
|
|
|
- const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGLColorVector);
|
|
|
+ const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGColorVector);
|
|
|
begin
|
|
|
StartPrimitive(GL_QUADS);
|
|
|
gl.Color4f(x1y1Color.X, x1y1Color.Y, x1y1Color.Z, x1y1Color.W);
|
|
@@ -541,7 +541,7 @@ begin
|
|
|
end;
|
|
|
|
|
|
procedure TGLCanvas.FillRectGradient(const x1, y1, x2, y2: Integer;
|
|
|
- const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGLColorVector);
|
|
|
+ const x1y1Color, x2y1Color, x2y2Color, x1y2Color: TGColorVector);
|
|
|
begin
|
|
|
StartPrimitive(GL_QUADS);
|
|
|
gl.Color4f(x1y1Color.X, x1y1Color.Y, x1y1Color.Z, x1y1Color.W);
|
|
@@ -558,7 +558,7 @@ begin
|
|
|
gl.Color4fv(@FCurrentPenColorVector);
|
|
|
end;
|
|
|
|
|
|
-procedure TGLCanvas.FillEllipseGradient(const x, y: Integer; const xRadius, yRadius: Integer; const edgeColor: TGLColorVector);
|
|
|
+procedure TGLCanvas.FillEllipseGradient(const x, y: Integer; const xRadius, yRadius: Integer; const edgeColor: TGColorVector);
|
|
|
begin
|
|
|
StartPrimitive(GL_TRIANGLE_FAN);
|
|
|
|
|
@@ -574,7 +574,7 @@ begin
|
|
|
gl.Color4fv(@FCurrentPenColorVector);
|
|
|
end;
|
|
|
|
|
|
-procedure TGLCanvas.FillEllipseGradient(const x, y, xRadius, yRadius: Single; const edgeColor: TGLColorVector);
|
|
|
+procedure TGLCanvas.FillEllipseGradient(const x, y, xRadius, yRadius: Single; const edgeColor: TGColorVector);
|
|
|
begin
|
|
|
StartPrimitive(GL_TRIANGLE_FAN);
|
|
|
gl.Vertex2f(x, y); // really necessary now :)
|
|
@@ -586,7 +586,7 @@ begin
|
|
|
gl.Color4fv(@FCurrentPenColorVector);
|
|
|
end;
|
|
|
|
|
|
-procedure TGLCanvas.FillEllipseGradient(const x, y, Radius: Single; const edgeColor: TGLColorVector);
|
|
|
+procedure TGLCanvas.FillEllipseGradient(const x, y, Radius: Single; const edgeColor: TGColorVector);
|
|
|
begin
|
|
|
FillEllipseGradient(x, y, Radius, Radius, edgeColor);
|
|
|
end;
|