SoMaterialBundle(3)
β¨ SoMaterialBundle β¨
okay bestie, welcome to SoMaterialBundle(3) π this one lives in the Library Functions Manual and it's genuinely such a helpful little class, i'm obsessed.
π NAME π
SoMaterialBundle β the class that makes material handling so much simpler. no cap.
π¦ SYNOPSIS π¦
Inherits SoBundle.
π Public Member Functions
SoMaterialBundle (SoAction *action)
~SoMaterialBundle ()
void setUpMultiple (void)
void sendFirst (void)
void forceSend (const int index)
SbBool isColorOnly (void) const
void send (const int index, const SbBool betweenbeginend)
πΈ Additional Inherited Members
Protected Member Functions inherited from SoBundle:
SoBundle (SoAction *action)
~SoBundle ()
Protected Attributes inherited from SoBundle:
SoState * stateβ literally just the state of the current action, that's it, that's the whole vibe π«Ά
π Detailed Description π
SoMaterialBundle simplifies material handling. periodt.
So here's the tea β β every shape node is supposed to create one of these on the stack, and then call sendFirst() before it sends anything at all to GL. that's the rule, bestie, no skipping it. Then while rendering is happening, you use send() to actually push material values over to GL. main character behavior fr fr β¨
π§ Constructor & Destructor Documentation π§
SoMaterialBundle::SoMaterialBundle (SoAction * action)
Constructor, where action is the action being applied to the geometry node. iconic. π
SoMaterialBundle::~SoMaterialBundle ()
Destructor. bye bestie, thanks for the materials π
π Member Function Documentation π
void SoMaterialBundle::setUpMultiple (void )
Currently not in use. It's only there for OIV compliance. that's it. it's giving "invited but not participating" π
void SoMaterialBundle::sendFirst (void )
Sends the initial material values to GL. This must be done once in all geometry nodes before the rendering begins β like, all of them, not just the ones you feel like. π
void SoMaterialBundle::forceSend (const int index)
Will send the material to GL even though index equals the current index. yes, even then. stubborn on purpose π
Provided for compatibility with the SGI Open Inventor v2.1 API.
SbBool SoMaterialBundle::isColorOnly (void ) const
Returns TRUE if the current light model is BASE_COLOR. that's the whole function, slay. π₯
void SoMaterialBundle::send (const int index, const SbBool betweenbeginend)
Sends the material values with index index to GL. It will test whether the current index equals index before actually sending. vibe check first, always. β¨
betweenBeginEnd should be TRUE if your program is between a glBegin() and a glEnd().
β οΈ heads up bestie β it is illegal to change the polygon stipple between aglBegin()and aglEnd(). like, do not do it. i'm serious. π
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots did this one, not me π«Ά
that's the whole page, bestie!! this gorgeousness is Coin, Version 3.1.3, and it's filed under SoMaterialBundle(3) πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms