/* Copyright (c) 1995 Nick Ing-Simmons. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. */ #define PERL_NO_GET_CONTEXT #include #include #include #include "tkGlue.def" #include "pTk/tkPort.h" #include "pTk/tkInt.h" #include "tkGlue.h" #include "tkGlue.m" #include "pTk/tkVMacro.h" #include "pTk/tkImgPhoto.h" #include "pTk/tkImgPhoto.m" #include "pTk/imgInt.h" #include "pTk/imgInt.m" extern Tk_PhotoImageFormat imgFmtPNG; DECLARE_VTABLES; TkimgphotoVtab *TkimgphotoVptr; ImgintVtab *ImgintVptr; MODULE = Tk::PNG PACKAGE = Tk::PNG PROTOTYPES: DISABLE BOOT: { IMPORT_VTABLES; TkimgphotoVptr = (TkimgphotoVtab *) SvIV(FindTkVarName("TkimgphotoVtab",5)); \ ImgintVptr = (ImgintVtab *) SvIV(FindTkVarName("ImgintVtab",5)); \ Tk_CreatePhotoImageFormat(&imgFmtPNG); }