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