Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.desktop/share/native/common/java2d/opengl/OGLRenderer.h
41159 views
1
/*
2
* Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
#ifndef OGLRenderer_h_Included
27
#define OGLRenderer_h_Included
28
29
#include "sun_java2d_pipe_BufferedRenderPipe.h"
30
#include "OGLContext.h"
31
32
#define BYTES_PER_POLY_POINT \
33
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_POLY_POINT
34
#define BYTES_PER_SCANLINE \
35
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SCANLINE
36
#define BYTES_PER_SPAN \
37
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SPAN
38
39
void OGLRenderer_DrawLine(OGLContext *oglc,
40
jint x1, jint y1, jint x2, jint y2);
41
void OGLRenderer_DrawRect(OGLContext *oglc,
42
jint x, jint y, jint w, jint h);
43
void OGLRenderer_DrawPoly(OGLContext *oglc,
44
jint nPoints, jint isClosed,
45
jint transX, jint transY,
46
jint *xPoints, jint *yPoints);
47
void OGLRenderer_DrawScanlines(OGLContext *oglc,
48
jint count, jint *scanlines);
49
void OGLRenderer_DrawParallelogram(OGLContext *oglc,
50
jfloat fx11, jfloat fy11,
51
jfloat dx21, jfloat dy21,
52
jfloat dx12, jfloat dy12,
53
jfloat lw21, jfloat lw12);
54
void OGLRenderer_DrawAAParallelogram(OGLContext *oglc, OGLSDOps *dstOps,
55
jfloat fx11, jfloat fy11,
56
jfloat dx21, jfloat dy21,
57
jfloat dx12, jfloat dy12,
58
jfloat lw21, jfloat lw12);
59
60
void OGLRenderer_FillRect(OGLContext *oglc,
61
jint x, jint y, jint w, jint h);
62
void OGLRenderer_FillSpans(OGLContext *oglc,
63
jint count, jint *spans);
64
void OGLRenderer_FillParallelogram(OGLContext *oglc,
65
jfloat fx11, jfloat fy11,
66
jfloat dx21, jfloat dy21,
67
jfloat dx12, jfloat dy12);
68
void OGLRenderer_FillAAParallelogram(OGLContext *oglc, OGLSDOps *dstOps,
69
jfloat fx11, jfloat fy11,
70
jfloat dx21, jfloat dy21,
71
jfloat dx12, jfloat dy12);
72
73
void OGLRenderer_EnableAAParallelogramProgram();
74
void OGLRenderer_DisableAAParallelogramProgram();
75
76
#endif /* OGLRenderer_h_Included */
77
78