Path: blob/master/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.h
41159 views
/*1* Copyright (c) 2019, 2021, 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#ifndef MTLRenderer_h_Included26#define MTLRenderer_h_Included2728#include "sun_java2d_pipe_BufferedRenderPipe.h"29#include "MTLContext.h"30#include "MTLGraphicsConfig.h"31#import "MTLLayer.h"3233#define BYTES_PER_POLY_POINT \34sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_POLY_POINT35#define BYTES_PER_SCANLINE \36sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SCANLINE37#define BYTES_PER_SPAN \38sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SPAN3940void MTLRenderer_DrawLine(MTLContext *mtlc, BMTLSDOps * dstOps,41jint x1, jint y1, jint x2, jint y2);42void MTLRenderer_DrawPixel(MTLContext *mtlc, BMTLSDOps * dstOps,43jint x, jint y);44void MTLRenderer_DrawRect(MTLContext *mtlc, BMTLSDOps * dstOps,45jint x, jint y, jint w, jint h);46void MTLRenderer_DrawPoly(MTLContext *mtlc, BMTLSDOps * dstOps,47jint nPoints, jint isClosed,48jint transX, jint transY,49jint *xPoints, jint *yPoints);50void MTLRenderer_DrawScanlines(MTLContext *mtlc, BMTLSDOps * dstOps,51jint count, jint *scanlines);52void MTLRenderer_DrawParallelogram(MTLContext *mtlc, BMTLSDOps * dstOps,53jfloat fx11, jfloat fy11,54jfloat dx21, jfloat dy21,55jfloat dx12, jfloat dy12,56jfloat lw21, jfloat lw12);57void MTLRenderer_DrawAAParallelogram(MTLContext *mtlc, BMTLSDOps * dstOps,58jfloat fx11, jfloat fy11,59jfloat dx21, jfloat dy21,60jfloat dx12, jfloat dy12,61jfloat lw21, jfloat lw12);62void MTLRenderer_FillRect(MTLContext *mtlc, BMTLSDOps * dstOps,63jint x, jint y, jint w, jint h);64void MTLRenderer_FillSpans(MTLContext *mtlc, BMTLSDOps * dstOps,65jint count, jint *spans);66void MTLRenderer_FillParallelogram(MTLContext *mtlc, BMTLSDOps * dstOps,67jfloat fx11, jfloat fy11,68jfloat dx21, jfloat dy21,69jfloat dx12, jfloat dy12);70void MTLRenderer_FillAAParallelogram(MTLContext *mtlc, BMTLSDOps * dstOps,71jfloat fx11, jfloat fy11,72jfloat dx21, jfloat dy21,73jfloat dx12, jfloat dy12);7475#endif /* MTLRenderer_h_Included */767778