POV-Ray : Newsgroups : povray.programming : Object_Struct in POV-Ray 3.5 : Re: Object_Struct in POV-Ray 3.5 Server Time
28 Jul 2024 10:23:22 EDT (-0400)
  Re: Object_Struct in POV-Ray 3.5  
From: Nathan Kopp
Date: 27 May 2002 03:46:12
Message: <3cf1e444@news.povray.org>
Currently they look like this:

#define OBJECT_FIELDS        \
  METHODS *Methods;          \
  int Type;                  \
  OBJECT *Sibling;           \
  TEXTURE *Texture;          \
  TEXTURE *Interior_Texture; \
  INTERIOR *Interior;        \
  OBJECT *Bound;             \
  OBJECT *Clip;              \
  LIGHT_SOURCE *LLights;     \
  BBOX BBox;                 \
  TRANSFORM *Trans;          \
  TRANSFORM *UV_Trans;       \
  SNGL Ph_Density;           \
  unsigned long Flags;

#define INIT_OBJECT_FIELDS(o,t,m) \
  o->Type     = t;                \
  o->Methods  = m;                \
  o->Sibling  = NULL;             \
  o->Texture  = NULL;             \
  o->Interior_Texture = NULL;     \
  o->Interior = NULL;             \
  o->Bound    = NULL;             \
  o->Clip     = NULL;             \
  o->LLights  = NULL;             \
  o->Trans    = NULL;             \
  o->UV_Trans = NULL;             \
  o->Ph_Density = 0;              \
  o->Flags    = 0;                \
  Make_BBox(o->BBox, -BOUND_HUGE/2.0, -BOUND_HUGE/2.0, -BOUND_HUGE/2.0, \
    BOUND_HUGE, BOUND_HUGE, BOUND_HUGE);

"Vadim Sytnikov" <syt### [at] rucom> wrote...
> Can someone who has access to POV's source code tell me what are OBJECT
> (Object_Struct, if more exactly; from frame.h) structure fields in POV-Ray
> 3.5?
>
> Asking not just out of curiosity, that's important for me...
>
> Thank you in advance,
> Vadim.
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.