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