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