Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/sun/java2d/d3d/D3DRenderer.h
32288 views
1
/*
2
* Copyright (c) 2007, 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
#include "sun_java2d_pipe_BufferedRenderPipe.h"
27
#include "D3DContext.h"
28
29
#define BYTES_PER_POLY_POINT \
30
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_POLY_POINT
31
#define BYTES_PER_SCANLINE \
32
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SCANLINE
33
#define BYTES_PER_SPAN \
34
sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SPAN
35
36
HRESULT D3DPIPELINE_API
37
D3DRenderer_DrawLine(D3DContext *d3dc,
38
jint x1, jint y1, jint x2, jint y2);
39
40
HRESULT D3DPIPELINE_API
41
D3DRenderer_DrawRect(D3DContext *d3dc,
42
jint x, jint y, jint w, jint h);
43
44
HRESULT D3DPIPELINE_API
45
D3DRenderer_FillRect(D3DContext *d3dc,
46
jint x, jint y, jint w, jint h);
47
48
HRESULT D3DPIPELINE_API
49
D3DRenderer_DrawPoly(D3DContext *d3dc,
50
jint nPoints, jboolean isClosed,
51
jint transX, jint transY,
52
jint *xPoints, jint *yPoints);
53
54
HRESULT D3DPIPELINE_API
55
D3DRenderer_DrawScanlines(D3DContext *d3dc,
56
jint scanlineCount, jint *scanlines);
57
58
HRESULT D3DPIPELINE_API
59
D3DRenderer_FillSpans(D3DContext *d3dc, jint spanCount, jint *spans);
60
61
HRESULT D3DPIPELINE_API
62
D3DRenderer_FillParallelogram(D3DContext *d3dc,
63
jfloat fx11, jfloat fy11,
64
jfloat dx21, jfloat dy21,
65
jfloat dx12, jfloat dy12);
66
67
HRESULT D3DPIPELINE_API
68
D3DRenderer_DrawParallelogram(D3DContext *d3dc,
69
jfloat fx11, jfloat fy11,
70
jfloat dx21, jfloat dy21,
71
jfloat dx12, jfloat dy12,
72
jfloat lw21, jfloat lw12);
73
74
HRESULT D3DPIPELINE_API
75
D3DRenderer_FillAAParallelogram(D3DContext *d3dc,
76
jfloat fx11, jfloat fy11,
77
jfloat dx21, jfloat dy21,
78
jfloat dx12, jfloat dy12);
79
80
HRESULT D3DPIPELINE_API
81
D3DRenderer_DrawAAParallelogram(D3DContext *d3dc,
82
jfloat fx11, jfloat fy11,
83
jfloat dx21, jfloat dy21,
84
jfloat dx12, jfloat dy12,
85
jfloat lw21, jfloat lw12);
86
87