EDIT: Is there somewhere that offers a rundown on the render pipeline in this framework? Because I have some questions.
Why do I need a "bound radius"? What does it do? Where should I set it? When? How?
What am I supposed to do with the IsVisible method?
Obviously these questions are granular and the answers will vary depending on "What I want to do with them." I would rather read what it is and what it is for somewhere and not bother present company with an endless array of simple questions. The docs may suit someone who is familiar with common rendering conventions, but they are opaque to me.
Ignore the following I have solved the errors in a non-functional manner:
END
I'm having difficulty understanding the appropriate management of the ICmpRenderer interface. While the code SirePi has offered supplies the ICmpRenderer.Draw method, the other members are not implementable in any obvious sense (I am likely making a set of incorrect assumptions).
I've tried several approaches to solving the problem without luck. I understand that I need to define both the .IsVisible and .BoundRadius members. But I don't know how to address them correctly. (I've not dealt with interfaces before, though I have a basic understanding that they are similar to a class or... Something.) The syntax I have tried isn't solving the problem.
Code:
public class MyClass : Component, ICmpRenderer
{
MyClass.BoundRadius = ///some float/single
...
}
I must be misunderstanding the C# syntax here. Do I need to use a method to implement this interface? I've tried a few times to do this something like:
Code:
void ICmpRenderer.BoundRadius()
{ ///I can't figure out what would be here.}
....
float ICmpRenderer.BoundRadius = ///some float;
I am clueless what I ought to be doing here. The docs don't describe the function of Bound.Radius, but it is required for... something. More or less irrelevant until I can get the code in a state that can be run.
Any suggestions or direct answers would be appreciated.