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/D3DBlitLoops.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
#ifndef D3DBlitLoops_h_Included
27
#define D3DBlitLoops_h_Included
28
29
#include "sun_java2d_d3d_D3DBlitLoops.h"
30
#include "D3DSurfaceData.h"
31
#include "D3DContext.h"
32
33
#define OFFSET_SRCTYPE sun_java2d_d3d_D3DBlitLoops_OFFSET_SRCTYPE
34
#define OFFSET_HINT sun_java2d_d3d_D3DBlitLoops_OFFSET_HINT
35
#define OFFSET_TEXTURE sun_java2d_d3d_D3DBlitLoops_OFFSET_TEXTURE
36
#define OFFSET_RTT sun_java2d_d3d_D3DBlitLoops_OFFSET_RTT
37
#define OFFSET_XFORM sun_java2d_d3d_D3DBlitLoops_OFFSET_XFORM
38
#define OFFSET_ISOBLIT sun_java2d_d3d_D3DBlitLoops_OFFSET_ISOBLIT
39
40
D3DPIPELINE_API HRESULT
41
D3DBlitLoops_IsoBlit(JNIEnv *env,
42
D3DContext *d3dc, jlong pSrcOps, jlong pDstOps,
43
jboolean xform, jint hint,
44
jboolean texture, jboolean rtt,
45
jint sx1, jint sy1,
46
jint sx2, jint sy2,
47
jdouble dx1, jdouble dy1,
48
jdouble dx2, jdouble dy2);
49
50
D3DPIPELINE_API HRESULT
51
D3DBL_CopySurfaceToIntArgbImage(IDirect3DSurface9 *pSurface,
52
SurfaceDataRasInfo *pDstInfo,
53
jint srcx, jint srcy,
54
jint srcWidth, jint srcHeight,
55
jint dstx, jint dsty);
56
57
D3DPIPELINE_API HRESULT
58
D3DBL_CopyImageToIntXrgbSurface(SurfaceDataRasInfo *pSrcInfo,
59
int srctype,
60
D3DResource *pDstSurfaceRes,
61
jint srcx, jint srcy,
62
jint srcWidth, jint srcHeight,
63
jint dstx, jint dsty);
64
65
HRESULT
66
D3DBlitLoops_Blit(JNIEnv *env,
67
D3DContext *d3dc, jlong pSrcOps, jlong pDstOps,
68
jboolean xform, jint hint,
69
jint srctype, jboolean texture,
70
jint sx1, jint sy1,
71
jint sx2, jint sy2,
72
jdouble dx1, jdouble dy1,
73
jdouble dx2, jdouble dy2);
74
75
HRESULT
76
D3DBlitLoops_SurfaceToSwBlit(JNIEnv *env, D3DContext *d3dc,
77
jlong pSrcOps, jlong pDstOps, jint dsttype,
78
jint srcx, jint srcy,
79
jint dstx, jint dsty,
80
jint width, jint height);
81
82
HRESULT
83
D3DBlitLoops_CopyArea(JNIEnv *env,
84
D3DContext *d3dc, D3DSDOps *dstOps,
85
jint x, jint y,
86
jint width, jint height,
87
jint dx, jint dy);
88
89
#endif /* D3DBlitLoops_h_Included */
90
91