Path: blob/master/src/java.desktop/share/native/common/java2d/opengl/OGLRenderer.h
41159 views
/*1* Copyright (c) 2005, 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#ifndef OGLRenderer_h_Included26#define OGLRenderer_h_Included2728#include "sun_java2d_pipe_BufferedRenderPipe.h"29#include "OGLContext.h"3031#define BYTES_PER_POLY_POINT \32sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_POLY_POINT33#define BYTES_PER_SCANLINE \34sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SCANLINE35#define BYTES_PER_SPAN \36sun_java2d_pipe_BufferedRenderPipe_BYTES_PER_SPAN3738void OGLRenderer_DrawLine(OGLContext *oglc,39jint x1, jint y1, jint x2, jint y2);40void OGLRenderer_DrawRect(OGLContext *oglc,41jint x, jint y, jint w, jint h);42void OGLRenderer_DrawPoly(OGLContext *oglc,43jint nPoints, jint isClosed,44jint transX, jint transY,45jint *xPoints, jint *yPoints);46void OGLRenderer_DrawScanlines(OGLContext *oglc,47jint count, jint *scanlines);48void OGLRenderer_DrawParallelogram(OGLContext *oglc,49jfloat fx11, jfloat fy11,50jfloat dx21, jfloat dy21,51jfloat dx12, jfloat dy12,52jfloat lw21, jfloat lw12);53void OGLRenderer_DrawAAParallelogram(OGLContext *oglc, OGLSDOps *dstOps,54jfloat fx11, jfloat fy11,55jfloat dx21, jfloat dy21,56jfloat dx12, jfloat dy12,57jfloat lw21, jfloat lw12);5859void OGLRenderer_FillRect(OGLContext *oglc,60jint x, jint y, jint w, jint h);61void OGLRenderer_FillSpans(OGLContext *oglc,62jint count, jint *spans);63void OGLRenderer_FillParallelogram(OGLContext *oglc,64jfloat fx11, jfloat fy11,65jfloat dx21, jfloat dy21,66jfloat dx12, jfloat dy12);67void OGLRenderer_FillAAParallelogram(OGLContext *oglc, OGLSDOps *dstOps,68jfloat fx11, jfloat fy11,69jfloat dx21, jfloat dy21,70jfloat dx12, jfloat dy12);7172void OGLRenderer_EnableAAParallelogramProgram();73void OGLRenderer_DisableAAParallelogramProgram();7475#endif /* OGLRenderer_h_Included */767778