|
FLTK 1.3.0
|
00001 // 00002 // "$Id: glut.H 8864 2011-07-19 04:49:30Z greg.ercolano $" 00003 // 00004 // GLUT emulation header file for the Fast Light Tool Kit (FLTK). 00005 // 00006 // Copyright 1998-2011 by Bill Spitzak and others. 00007 // 00008 // This library is free software. Distribution and use rights are outlined in 00009 // the file "COPYING" which should have been included with this file. If this 00010 // file is missing or damaged, see the license at: 00011 // 00012 // http://www.fltk.org/COPYING.php 00013 // 00014 // Please report all bugs and problems on the following page: 00015 // 00016 // http://www.fltk.org/str.php 00017 // 00018 00019 // Emulation of GLUT using fltk. 00020 00021 // GLUT is Copyright (c) Mark J. Kilgard, 1994, 1995, 1996: 00022 // "This program is freely distributable without licensing fees and is 00023 // provided without guarantee or warrantee expressed or implied. This 00024 // program is -not- in the public domain." 00025 00026 // Although I have copied the GLUT API, none of my code is based on 00027 // any GLUT implementation details and is therefore covered by the LGPL. 00028 00029 // Commented out lines indicate parts of GLUT that are not emulated. 00030 00031 #ifndef Fl_glut_H 00032 # define Fl_glut_H 00033 00034 # include "gl.h" 00035 00036 00037 # include "Fl.H" 00038 # include "Fl_Gl_Window.H" 00039 00044 class FL_EXPORT Fl_Glut_Window : public Fl_Gl_Window { 00045 void _init(); 00046 int mouse_down; 00047 protected: 00048 void draw(); 00049 void draw_overlay(); 00050 int handle(int); 00051 public: // so the inline functions work 00052 int number; 00053 int menu[3]; 00054 void make_current(); 00055 void (*display)(); 00056 void (*overlaydisplay)(); 00057 void (*reshape)(int w, int h); 00058 void (*keyboard)(uchar, int x, int y); 00059 void (*mouse)(int b, int state, int x, int y); 00060 void (*motion)(int x, int y); 00061 void (*passivemotion)(int x, int y); 00062 void (*entry)(int); 00063 void (*visibility)(int); 00064 void (*special)(int, int x, int y); 00065 Fl_Glut_Window(int w, int h, const char *); 00066 Fl_Glut_Window(int x, int y, int w, int h, const char *); 00067 ~Fl_Glut_Window(); 00068 }; 00069 00070 extern FL_EXPORT Fl_Glut_Window *glut_window; // the current window 00071 extern FL_EXPORT int glut_menu; // the current menu 00072 00073 // function pointers that are not per-window: 00074 extern FL_EXPORT void (*glut_idle_function)(); 00075 extern FL_EXPORT void (*glut_menustate_function)(int); 00076 extern FL_EXPORT void (*glut_menustatus_function)(int,int,int); 00077 00079 00080 //# define GLUT_API_VERSION This does not match any version of GLUT exactly... 00081 00082 FL_EXPORT void glutInit(int *argcp, char **argv); // creates first window 00083 00084 FL_EXPORT void glutInitDisplayMode(unsigned int mode); 00085 // the FL_ symbols have the same value as the GLUT ones: 00086 # define GLUT_RGB FL_RGB 00087 # define GLUT_RGBA FL_RGB 00088 # define GLUT_INDEX FL_INDEX 00089 # define GLUT_SINGLE FL_SINGLE 00090 # define GLUT_DOUBLE FL_DOUBLE 00091 # define GLUT_ACCUM FL_ACCUM 00092 # define GLUT_ALPHA FL_ALPHA 00093 # define GLUT_DEPTH FL_DEPTH 00094 # define GLUT_STENCIL FL_STENCIL 00095 # define GLUT_MULTISAMPLE FL_MULTISAMPLE 00096 # define GLUT_STEREO FL_STEREO 00097 // # define GLUT_LUMINANCE 512 00098 00099 FL_EXPORT void glutInitWindowPosition(int x, int y); 00100 00101 FL_EXPORT void glutInitWindowSize(int w, int h); 00102 00103 FL_EXPORT void glutMainLoop(); 00104 00105 FL_EXPORT int glutCreateWindow(char *title); 00106 FL_EXPORT int glutCreateWindow(const char *title); 00107 00108 FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height); 00109 00110 FL_EXPORT void glutDestroyWindow(int win); 00111 00112 inline void glutPostRedisplay() {glut_window->redraw();} 00113 00114 FL_EXPORT void glutPostWindowRedisplay(int win); 00115 00116 FL_EXPORT void glutSwapBuffers(); 00117 00118 inline int glutGetWindow() {return glut_window->number;} 00119 00120 FL_EXPORT void glutSetWindow(int win); 00121 00122 inline void glutSetWindowTitle(char *t) {glut_window->label(t);} 00123 00124 inline void glutSetIconTitle(char *t) {glut_window->iconlabel(t);} 00125 00126 inline void glutPositionWindow(int x, int y) {glut_window->position(x,y);} 00127 00128 inline void glutReshapeWindow(int w, int h) {glut_window->size(w,h);} 00129 00130 inline void glutPopWindow() {glut_window->show();} 00131 00132 inline void glutPushWindow() { /* do nothing */ } 00133 00134 inline void glutIconifyWindow() {glut_window->iconize();} 00135 00136 inline void glutShowWindow() {glut_window->show();} 00137 00138 inline void glutHideWindow() {glut_window->hide();} 00139 00140 inline void glutFullScreen() {glut_window->fullscreen();} 00141 00142 inline void glutSetCursor(Fl_Cursor cursor) {glut_window->cursor(cursor);} 00143 // notice that the numeric values are different than glut: 00144 # define GLUT_CURSOR_RIGHT_ARROW ((Fl_Cursor)2) 00145 # define GLUT_CURSOR_LEFT_ARROW ((Fl_Cursor)67) 00146 # define GLUT_CURSOR_INFO FL_CURSOR_HAND 00147 # define GLUT_CURSOR_DESTROY ((Fl_Cursor)45) 00148 # define GLUT_CURSOR_HELP FL_CURSOR_HELP 00149 # define GLUT_CURSOR_CYCLE ((Fl_Cursor)26) 00150 # define GLUT_CURSOR_SPRAY ((Fl_Cursor)63) 00151 # define GLUT_CURSOR_WAIT FL_CURSOR_WAIT 00152 # define GLUT_CURSOR_TEXT FL_CURSOR_INSERT 00153 # define GLUT_CURSOR_CROSSHAIR FL_CURSOR_CROSS 00154 # define GLUT_CURSOR_UP_DOWN FL_CURSOR_NS 00155 # define GLUT_CURSOR_LEFT_RIGHT FL_CURSOR_WE 00156 # define GLUT_CURSOR_TOP_SIDE FL_CURSOR_N 00157 # define GLUT_CURSOR_BOTTOM_SIDE FL_CURSOR_S 00158 # define GLUT_CURSOR_LEFT_SIDE FL_CURSOR_W 00159 # define GLUT_CURSOR_RIGHT_SIDE FL_CURSOR_E 00160 # define GLUT_CURSOR_TOP_LEFT_CORNER FL_CURSOR_NW 00161 # define GLUT_CURSOR_TOP_RIGHT_CORNER FL_CURSOR_NE 00162 # define GLUT_CURSOR_BOTTOM_RIGHT_CORNER FL_CURSOR_SE 00163 # define GLUT_CURSOR_BOTTOM_LEFT_CORNER FL_CURSOR_SW 00164 # define GLUT_CURSOR_INHERIT FL_CURSOR_DEFAULT 00165 # define GLUT_CURSOR_NONE FL_CURSOR_NONE 00166 # define GLUT_CURSOR_FULL_CROSSHAIR FL_CURSOR_CROSS 00167 00168 inline void glutWarpPointer(int, int) { /* do nothing */ } 00169 00170 inline void glutEstablishOverlay() {glut_window->make_overlay_current();} 00171 00172 inline void glutRemoveOverlay() {glut_window->hide_overlay();} 00173 00174 inline void glutUseLayer(GLenum layer) { 00175 layer ? glut_window->make_overlay_current() : glut_window->make_current();} 00176 enum {GLUT_NORMAL, GLUT_OVERLAY}; 00177 00178 inline void glutPostOverlayRedisplay() {glut_window->redraw_overlay();} 00179 00180 inline void glutShowOverlay() {glut_window->redraw_overlay();} 00181 00182 inline void glutHideOverlay() {glut_window->hide_overlay();} 00183 00184 FL_EXPORT int glutCreateMenu(void (*)(int)); 00185 00186 FL_EXPORT void glutDestroyMenu(int menu); 00187 00188 inline int glutGetMenu() {return glut_menu;} 00189 00190 inline void glutSetMenu(int m) {glut_menu = m;} 00191 00192 FL_EXPORT void glutAddMenuEntry(char *label, int value); 00193 00194 FL_EXPORT void glutAddSubMenu(char *label, int submenu); 00195 00196 FL_EXPORT void glutChangeToMenuEntry(int item, char *labela, int value); 00197 00198 FL_EXPORT void glutChangeToSubMenu(int item, char *label, int submenu); 00199 00200 FL_EXPORT void glutRemoveMenuItem(int item); 00201 00202 inline void glutAttachMenu(int b) {glut_window->menu[b] = glut_menu;} 00203 00204 inline void glutDetachMenu(int b) {glut_window->menu[b] = 0;} 00205 00206 inline void glutDisplayFunc(void (*f)()) {glut_window->display = f;} 00207 00208 inline void glutReshapeFunc(void (*f)(int w, int h)) {glut_window->reshape=f;} 00209 00210 inline void glutKeyboardFunc(void (*f)(uchar key, int x, int y)) { 00211 glut_window->keyboard = f;} 00212 00213 inline void glutMouseFunc(void (*f)(int b, int state, int x, int y)) { 00214 glut_window->mouse = f;} 00215 # define GLUT_LEFT_BUTTON 0 00216 # define GLUT_MIDDLE_BUTTON 1 00217 # define GLUT_RIGHT_BUTTON 2 00218 # define GLUT_DOWN 0 00219 # define GLUT_UP 1 00220 00221 inline void glutMotionFunc(void (*f)(int x, int y)) {glut_window->motion= f;} 00222 00223 inline void glutPassiveMotionFunc(void (*f)(int x, int y)) { 00224 glut_window->passivemotion= f;} 00225 00226 inline void glutEntryFunc(void (*f)(int s)) {glut_window->entry = f;} 00227 enum {GLUT_LEFT, GLUT_ENTERED}; 00228 00229 inline void glutVisibilityFunc(void (*f)(int s)) {glut_window->visibility=f;} 00230 enum {GLUT_NOT_VISIBLE, GLUT_VISIBLE}; 00231 00232 FL_EXPORT void glutIdleFunc(void (*f)()); 00233 00234 // Warning: this cast may not work on all machines: 00235 inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) { 00236 Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)value); 00237 } 00238 00239 inline void glutMenuStateFunc(void (*f)(int state)) { 00240 glut_menustate_function = f;} 00241 00242 inline void glutMenuStatusFunc(void (*f)(int status, int x, int y)) { 00243 glut_menustatus_function = f;} 00244 enum {GLUT_MENU_NOT_IN_USE, GLUT_MENU_IN_USE}; 00245 00246 inline void glutSpecialFunc(void (*f)(int key, int x, int y)) { 00247 glut_window->special = f;} 00248 # define GLUT_KEY_F1 1 00249 # define GLUT_KEY_F2 2 00250 # define GLUT_KEY_F3 3 00251 # define GLUT_KEY_F4 4 00252 # define GLUT_KEY_F5 5 00253 # define GLUT_KEY_F6 6 00254 # define GLUT_KEY_F7 7 00255 # define GLUT_KEY_F8 8 00256 # define GLUT_KEY_F9 9 00257 # define GLUT_KEY_F10 10 00258 # define GLUT_KEY_F11 11 00259 # define GLUT_KEY_F12 12 00260 // WARNING: Different values than GLUT uses: 00261 # define GLUT_KEY_LEFT FL_Left 00262 # define GLUT_KEY_UP FL_Up 00263 # define GLUT_KEY_RIGHT FL_Right 00264 # define GLUT_KEY_DOWN FL_Down 00265 # define GLUT_KEY_PAGE_UP FL_Page_Up 00266 # define GLUT_KEY_PAGE_DOWN FL_Page_Down 00267 # define GLUT_KEY_HOME FL_Home 00268 # define GLUT_KEY_END FL_End 00269 # define GLUT_KEY_INSERT FL_Insert 00270 00271 //inline void glutSpaceballMotionFunc(void (*)(int x, int y, int z)); 00272 00273 //inline void glutSpaceballRotateFunc(void (*)(int x, int y, int z)); 00274 00275 //inline void glutSpaceballButtonFunc(void (*)(int button, int state)); 00276 00277 //inline void glutButtonBoxFunc(void (*)(int button, int state)); 00278 00279 //inline void glutDialsFunc(void (*)(int dial, int value)); 00280 00281 //inline void glutTabletMotionFunc(void (*)(int x, int y)); 00282 00283 //inline void glutTabletButtonFunc(void (*)(int button, int state, int x, int y)); 00284 00285 inline void glutOverlayDisplayFunc(void (*f)()) { 00286 glut_window->overlaydisplay = f;} 00287 00288 //inline void glutWindowStatusFunc(void (*)(int state)); 00289 //enum {GLUT_HIDDEN, GLUT_FULLY_RETAINED, GLUT_PARTIALLY_RETAINED, 00290 // GLUT_FULLY_COVERED}; 00291 00292 //inline void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue); 00293 00294 //inline GLfloat glutGetColor(int ndx, int component); 00295 //#define GLUT_RED 0 00296 //#define GLUT_GREEN 1 00297 //#define GLUT_BLUE 2 00298 00299 //inline void glutCopyColormap(int win); 00300 00301 // Warning: values are changed from GLUT! 00302 // Also relies on the GL_ symbols having values greater than 100 00303 FL_EXPORT int glutGet(GLenum type); 00304 enum { 00305 GLUT_RETURN_ZERO = 0, 00306 GLUT_WINDOW_X, 00307 GLUT_WINDOW_Y, 00308 GLUT_WINDOW_WIDTH, 00309 GLUT_WINDOW_HEIGHT, 00310 GLUT_WINDOW_PARENT, 00311 GLUT_SCREEN_WIDTH, 00312 GLUT_SCREEN_HEIGHT, 00313 GLUT_MENU_NUM_ITEMS, 00314 GLUT_DISPLAY_MODE_POSSIBLE, 00315 GLUT_INIT_WINDOW_X, 00316 GLUT_INIT_WINDOW_Y, 00317 GLUT_INIT_WINDOW_WIDTH, 00318 GLUT_INIT_WINDOW_HEIGHT, 00319 GLUT_INIT_DISPLAY_MODE, 00320 GLUT_WINDOW_BUFFER_SIZE, 00321 GLUT_VERSION 00322 //GLUT_WINDOW_NUM_CHILDREN, 00323 //GLUT_WINDOW_CURSOR, 00324 //GLUT_SCREEN_WIDTH_MM, 00325 //GLUT_SCREEN_HEIGHT_MM, 00326 //GLUT_ELAPSED_TIME, 00327 }; 00328 00329 # define GLUT_WINDOW_STENCIL_SIZE GL_STENCIL_BITS 00330 # define GLUT_WINDOW_DEPTH_SIZE GL_DEPTH_BITS 00331 # define GLUT_WINDOW_RED_SIZE GL_RED_BITS 00332 # define GLUT_WINDOW_GREEN_SIZE GL_GREEN_BITS 00333 # define GLUT_WINDOW_BLUE_SIZE GL_BLUE_BITS 00334 # define GLUT_WINDOW_ALPHA_SIZE GL_ALPHA_BITS 00335 # define GLUT_WINDOW_ACCUM_RED_SIZE GL_ACCUM_RED_BITS 00336 # define GLUT_WINDOW_ACCUM_GREEN_SIZE GL_ACCUM_GREEN_BITS 00337 # define GLUT_WINDOW_ACCUM_BLUE_SIZE GL_ACCUM_BLUE_BITS 00338 # define GLUT_WINDOW_ACCUM_ALPHA_SIZE GL_ACCUM_ALPHA_BITS 00339 # define GLUT_WINDOW_DOUBLEBUFFER GL_DOUBLEBUFFER 00340 # define GLUT_WINDOW_RGBA GL_RGBA 00341 # define GLUT_WINDOW_COLORMAP_SIZE GL_INDEX_BITS 00342 # ifdef GL_SAMPLES_SGIS 00343 # define GLUT_WINDOW_NUM_SAMPLES GL_SAMPLES_SGIS 00344 # else 00345 # define GLUT_WINDOW_NUM_SAMPLES GLUT_RETURN_ZERO 00346 # endif 00347 # define GLUT_WINDOW_STEREO GL_STEREO 00348 00349 # define GLUT_HAS_KEYBOARD 600 00350 # define GLUT_HAS_MOUSE 601 00351 # define GLUT_HAS_SPACEBALL 602 00352 # define GLUT_HAS_DIAL_AND_BUTTON_BOX 603 00353 # define GLUT_HAS_TABLET 604 00354 # define GLUT_NUM_MOUSE_BUTTONS 605 00355 # define GLUT_NUM_SPACEBALL_BUTTONS 606 00356 # define GLUT_NUM_BUTTON_BOX_BUTTONS 607 00357 # define GLUT_NUM_DIALS 608 00358 # define GLUT_NUM_TABLET_BUTTONS 609 00359 FL_EXPORT int glutDeviceGet(GLenum type); 00360 00361 // WARNING: these values are different than GLUT uses: 00362 # define GLUT_ACTIVE_SHIFT FL_SHIFT 00363 # define GLUT_ACTIVE_CTRL FL_CTRL 00364 # define GLUT_ACTIVE_ALT FL_ALT 00365 inline int glutGetModifiers() {return Fl::event_state() & (GLUT_ACTIVE_SHIFT | GLUT_ACTIVE_CTRL | GLUT_ACTIVE_ALT);} 00366 00367 FL_EXPORT int glutLayerGet(GLenum); 00368 # define GLUT_OVERLAY_POSSIBLE 800 00369 //#define GLUT_LAYER_IN_USE 801 00370 //#define GLUT_HAS_OVERLAY 802 00371 # define GLUT_TRANSPARENT_INDEX 803 00372 # define GLUT_NORMAL_DAMAGED 804 00373 # define GLUT_OVERLAY_DAMAGED 805 00374 00375 extern "C" { 00376 typedef void (*GLUTproc)(); 00377 } 00378 00379 FL_EXPORT GLUTproc glutGetProcAddress(const char *procName); 00380 00381 //inline int glutVideoResizeGet(GLenum param); 00382 //#define GLUT_VIDEO_RESIZE_POSSIBLE 900 00383 //#define GLUT_VIDEO_RESIZE_IN_USE 901 00384 //#define GLUT_VIDEO_RESIZE_X_DELTA 902 00385 //#define GLUT_VIDEO_RESIZE_Y_DELTA 903 00386 //#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 904 00387 //#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 905 00388 //#define GLUT_VIDEO_RESIZE_X 906 00389 //#define GLUT_VIDEO_RESIZE_Y 907 00390 //#define GLUT_VIDEO_RESIZE_WIDTH 908 00391 //#define GLUT_VIDEO_RESIZE_HEIGHT 909 00392 00393 //inline void glutSetupVideoResizing(); 00394 00395 //inline void glutStopVideoResizing(); 00396 00397 //inline void glutVideoResize(int x, int y, int width, int height); 00398 00399 //inline void glutVideoPan(int x, int y, int width, int height); 00400 00401 // Font argument must be a void* for compatibility, so... 00403 struct Fl_Glut_Bitmap_Font {Fl_Font font; Fl_Fontsize size;}; 00404 00405 extern FL_EXPORT struct Fl_Glut_Bitmap_Font 00406 glutBitmap9By15, glutBitmap8By13, glutBitmapTimesRoman10, 00407 glutBitmapTimesRoman24, glutBitmapHelvetica10, glutBitmapHelvetica12, 00408 glutBitmapHelvetica18; 00409 # define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15) 00410 # define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13) 00411 # define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10) 00412 # define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24) 00413 # define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10) 00414 # define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12) 00415 # define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18) 00416 00417 FL_EXPORT void glutBitmapCharacter(void *font, int character); 00418 FL_EXPORT int glutBitmapHeight(void *font); 00419 FL_EXPORT int glutBitmapLength(void *font, const unsigned char *string); 00420 FL_EXPORT void glutBitmapString(void *font, const unsigned char *string); 00421 FL_EXPORT int glutBitmapWidth(void *font, int character); 00422 00423 FL_EXPORT int glutExtensionSupported(char *name); 00424 00425 /* GLUT stroked font sub-API */ 00426 struct Fl_Glut_StrokeVertex { 00427 GLfloat X, Y; 00428 }; 00429 00430 struct Fl_Glut_StrokeStrip { 00431 int Number; 00432 const Fl_Glut_StrokeVertex* Vertices; 00433 }; 00434 00435 struct Fl_Glut_StrokeChar { 00436 GLfloat Right; 00437 int Number; 00438 const Fl_Glut_StrokeStrip* Strips; 00439 }; 00440 00441 struct Fl_Glut_StrokeFont { 00442 char* Name; // The source font name 00443 int Quantity; // Number of chars in font 00444 GLfloat Height; // Height of the characters 00445 const Fl_Glut_StrokeChar** Characters;// The characters mapping 00446 }; 00447 extern FL_EXPORT Fl_Glut_StrokeFont glutStrokeRoman; 00448 extern FL_EXPORT Fl_Glut_StrokeFont glutStrokeMonoRoman; 00449 # define GLUT_STROKE_ROMAN (&glutStrokeRoman) 00450 # define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman) 00451 00452 FL_EXPORT void glutStrokeCharacter(void *font, int character); 00453 FL_EXPORT GLfloat glutStrokeHeight(void *font); 00454 FL_EXPORT int glutStrokeLength(void *font, const unsigned char *string); 00455 FL_EXPORT void glutStrokeString(void *font, const unsigned char *string); 00456 FL_EXPORT int glutStrokeWidth(void *font, int character); 00457 00458 /* GLUT pre-built models sub-API */ 00459 FL_EXPORT void glutWireSphere(GLdouble radius, GLint slices, GLint stacks); 00460 FL_EXPORT void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); 00461 FL_EXPORT void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); 00462 FL_EXPORT void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); 00463 FL_EXPORT void glutWireCube(GLdouble size); 00464 FL_EXPORT void glutSolidCube(GLdouble size); 00465 FL_EXPORT void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); 00466 FL_EXPORT void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); 00467 FL_EXPORT void glutWireDodecahedron(); 00468 FL_EXPORT void glutSolidDodecahedron(); 00469 FL_EXPORT void glutWireTeapot(GLdouble size); 00470 FL_EXPORT void glutSolidTeapot(GLdouble size); 00471 FL_EXPORT void glutWireOctahedron(); 00472 FL_EXPORT void glutSolidOctahedron(); 00473 FL_EXPORT void glutWireTetrahedron(); 00474 FL_EXPORT void glutSolidTetrahedron(); 00475 FL_EXPORT void glutWireIcosahedron(); 00476 FL_EXPORT void glutSolidIcosahedron(); 00477 00478 #endif // !Fl_glut_H 00479 00480 // 00481 // End of "$Id: glut.H 8864 2011-07-19 04:49:30Z greg.ercolano $". 00482 //