Path: blob/master/src/java.desktop/share/native/libawt/java2d/loops/Any3Byte.c
41159 views
/*1* Copyright (c) 2000, 2010, 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 <string.h>2627#include "Any3Byte.h"2829/*30* This file declares, registers, and defines the various graphics31* primitive loops to manipulate surfaces of type "Any3Byte".32*33* See also LoopMacros.h34*/3536RegisterFunc RegisterAny3Byte;3738DECLARE_SOLID_FILLRECT(Any3Byte);39DECLARE_SOLID_FILLSPANS(Any3Byte);40DECLARE_SOLID_PARALLELOGRAM(Any3Byte);41DECLARE_SOLID_DRAWLINE(Any3Byte);42DECLARE_XOR_FILLRECT(Any3Byte);43DECLARE_XOR_FILLSPANS(Any3Byte);44DECLARE_XOR_DRAWLINE(Any3Byte);45DECLARE_SOLID_DRAWGLYPHLIST(Any3Byte);46DECLARE_XOR_DRAWGLYPHLIST(Any3Byte);4748NativePrimitive Any3BytePrimitives[] = {49REGISTER_SOLID_FILLRECT(Any3Byte),50REGISTER_SOLID_FILLSPANS(Any3Byte),51REGISTER_SOLID_PARALLELOGRAM(Any3Byte),52REGISTER_SOLID_LINE_PRIMITIVES(Any3Byte),53REGISTER_XOR_FILLRECT(Any3Byte),54REGISTER_XOR_FILLSPANS(Any3Byte),55REGISTER_XOR_LINE_PRIMITIVES(Any3Byte),56REGISTER_SOLID_DRAWGLYPHLIST(Any3Byte),57REGISTER_XOR_DRAWGLYPHLIST(Any3Byte),58};5960jboolean RegisterAny3Byte(JNIEnv *env)61{62return RegisterPrimitives(env, Any3BytePrimitives,63ArraySize(Any3BytePrimitives));64}6566DEFINE_ISOCOPY_BLIT(Any3Byte)6768DEFINE_ISOSCALE_BLIT(Any3Byte)6970DEFINE_ISOXOR_BLIT(Any3Byte)7172DEFINE_SOLID_FILLRECT(Any3Byte)7374DEFINE_SOLID_FILLSPANS(Any3Byte)7576DEFINE_SOLID_PARALLELOGRAM(Any3Byte)7778DEFINE_SOLID_DRAWLINE(Any3Byte)7980DEFINE_XOR_FILLRECT(Any3Byte)8182DEFINE_XOR_FILLSPANS(Any3Byte)8384DEFINE_XOR_DRAWLINE(Any3Byte)8586DEFINE_SOLID_DRAWGLYPHLIST(Any3Byte)8788DEFINE_XOR_DRAWGLYPHLIST(Any3Byte)899091