delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/15/11:42:11

Date: Tue, 15 Jul 1997 08:34:04 -0700 (PDT)
From: KaRNaGE <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us>
To: Dj Delorie <djgpp AT delorie DOT com>
Subject: Adding to Strcuts
Message-ID: <Pine.GSO.3.96.970715082906.26637B-100000@linknet.kitsap.lib.wa.us>
MIME-Version: 1.0

i was wondering if there was a way to add more elements to a struct in
C....allegro has the folowing V3D struct

typedef struct V3D
{
  fixed x, y, z;
  fixed u, v;
  int c;
}

and i want to add:
fixed nox, noy, noz;
fixed nwx, nwy, nwz;

for the normals...i use to just comment the structure out and rewrite
it...but  everytime i upgreade allegro, it copies over the allegro.h
file...so my structure is lost...so i'm wondering if i can redefine the
structure elsewear in one of my headers....thankz...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019