Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Today's Posts

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 4th March 2005, 09:17 AM   #1
monster
Member
Advanced member
 
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
Default Plugin SDK Material Changes

I notice that the material structure is now defined as;
Code:
typedef struct material_t
{
	int dummy;
	// private
} ACMaterial; //  private ACEntity

typedef struct material_template_t
{
    ACrgb rgb; // diffuse
    ACrgb ambient;
    ACrgb specular;
    ACrgb emissive;
    float shininess;
    float transparency;
} ACMaterialTemplate;
So, given that a surface holds an index to it's material in the palette, and that we can get the actual material with
Code:
ACMaterial *ac_palette_get_material(int num);
How do we get ahold of the actual information about that material?
monster is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 10:18 AM.


AC3D Forum
(C) Inivis Limited 2020