Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/sun/java2d/d3d/D3DRenderer.h
32288 views
/*1* Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#include "sun_java2d_pipe_BufferedRenderPipe.h"26#include "D3DContext.h"2728#define BYTES_PER_POLY_POINT \29sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_POLY_POINT30#define BYTES_PER_SCANLINE \31sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SCANLINE32#define BYTES_PER_SPAN \33sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SPAN3435HRESULT D3DPIPELINE_API36D3DRenderer_DrawLine(D3DContext *d3dc,37jint x1, jint y1, jint x2, jint y2);3839HRESULT D3DPIPELINE_API40D3DRenderer_DrawRect(D3DContext *d3dc,41jint x, jint y, jint w, jint h);4243HRESULT D3DPIPELINE_API44D3DRenderer_FillRect(D3DContext *d3dc,45jint x, jint y, jint w, jint h);4647HRESULT D3DPIPELINE_API48D3DRenderer_DrawPoly(D3DContext *d3dc,49jint nPoints, jboolean isClosed,50jint transX, jint transY,51jint *xPoints, jint *yPoints);5253HRESULT D3DPIPELINE_API54D3DRenderer_DrawScanlines(D3DContext *d3dc,55jint scanlineCount, jint *scanlines);5657HRESULT D3DPIPELINE_API58D3DRenderer_FillSpans(D3DContext *d3dc, jint spanCount, jint *spans);5960HRESULT D3DPIPELINE_API61D3DRenderer_FillParallelogram(D3DContext *d3dc,62jfloat fx11, jfloat fy11,63jfloat dx21, jfloat dy21,64jfloat dx12, jfloat dy12);6566HRESULT D3DPIPELINE_API67D3DRenderer_DrawParallelogram(D3DContext *d3dc,68jfloat fx11, jfloat fy11,69jfloat dx21, jfloat dy21,70jfloat dx12, jfloat dy12,71jfloat lw21, jfloat lw12);7273HRESULT D3DPIPELINE_API74D3DRenderer_FillAAParallelogram(D3DContext *d3dc,75jfloat fx11, jfloat fy11,76jfloat dx21, jfloat dy21,77jfloat dx12, jfloat dy12);7879HRESULT D3DPIPELINE_API80D3DRenderer_DrawAAParallelogram(D3DContext *d3dc,81jfloat fx11, jfloat fy11,82jfloat dx21, jfloat dy21,83jfloat dx12, jfloat dy12,84jfloat lw21, jfloat lw12);858687