dev:element_tutorial
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev:element_tutorial [2014/09/05 20:20] – [Write behavior method] tsmall1 | dev:element_tutorial [2014/09/17 20:00] (current) – [Create the C++ Compilation file] tsmall1 | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| < | < | ||
| - | MFMv2/ | + | MFMv2/ |
| </ | </ | ||
| Line 57: | Line 57: | ||
| m_targetDensity(this, | m_targetDensity(this, | ||
| "The Creg will try to fill this many spots in its event " | "The Creg will try to fill this many spots in its event " | ||
| - | " | + | " |
| </ | </ | ||
| Line 141: | Line 141: | ||
| If the number of Cregs is greater than the thresold, it will delete one of the elements that isn't a Creg. Otherwise, it will delete one that is a Creg. | If the number of Cregs is greater than the thresold, it will delete one of the elements that isn't a Creg. Otherwise, it will delete one that is a Creg. | ||
| - | ===== Register Element | + | |
| + | ===== Register Element | ||
| Open: | Open: | ||
| Line 149: | Line 150: | ||
| </ | </ | ||
| - | Add the line: | + | Put, at the end of the file: |
| < | < | ||
| #include " | #include " | ||
| </ | </ | ||
| - | This lets the driver know that there is a Creg element | + | This elemental include file is used by all drivers so they know about the elements |
| - | Next, open: | + | ===== Register Element with a Driver ===== |
| + | |||
| + | Open: | ||
| < | < | ||
dev/element_tutorial.1409948434.txt.gz · Last modified: 2014/09/05 20:20 (external edit)
