Re: Passing floats/doubles to C
- Posted by Todd Riggins <triggins at AIRMAIL.NET> Feb 13, 2000
- 543 views
Bernie Ryan wrote: > Todd: > I am confused you said that you were using doubles and > in your last post you are using float ?? I used both to test each type. I said something in that email that I did use both. Mabie I just didn't word it right. > Also in your Sets function you are setting the same names > more than once. > > >Fill in the values: > > Sets(material, "duffuse_r", 1.0) <-------- same name > > Sets(material, "duffuse_r", 1.1) <-------- same name > > Sets(material, "duffuse_r", 1.2) <-------- same name > > Sets(material, "duffuse_r", 1.3) <-------- last value you set > > Sets(material, "ambient_r", 1.4) ETC.... > > Sets(material, "ambient_r", 1.5) > > Sets(material, "ambient_r", 1.6) > > Sets(material, "ambient_r", 1.7) > > Sets(material, "specular_r", 1.8) > > Sets(material, "specular_r", 1.9) > > Sets(material, "specular_r", 1.11) > > Sets(material, "specular_r", 1.12) > > Sets(material, "emissive_r", 1.13) > > Sets(material, "emissive_r", 1.14) > > Sets(material, "emissive_r", 1.15) > > Sets(material, "emissive_r", 1.16) > > Sets(material, "power", 1.17) How embarrassing. I fixed the values and now it works! Finally! I like your library now. :) But... I still don't know why I can't use just the regular poke way to make it work. I still need to figure out what I'm doing wrong, so I can at least tell Robert what I did wrong. Thanks again... - Todd Riggins