SoShaderParameter1i(3)
β¨ SoShaderParameter1i β¨
okay so bestie, welcome to the Coin manual, and today's main character is SoShaderParameter1i π
π NAME π
SoShaderParameter1i β the class you use to define an integer value as a shader parameter π
ngl, that's the whole vibe: it's giving "one integer, going straight into your shader." no cap. π¦
β¨ SYNOPSIS β¨
okay bestie, here's how you pull this bad boy in β one header, no drama:
#include <Inventor/nodes/SoShaderParameter.h>
Inherits SoUniformShaderParameter. that's the lineage, and honestly it's giving royal family π
π Public Member Functions
virtual SoType getTypeId (void) constβ the type-checking flex, inherited from the ancestors (no extra description given, it just is).virtual void updateParameter (SoGLShaderObject *shaderObject)β Updates the shader parameter in the OpenGL state with the content of thevaluefield. literally the whole point of this class existing, no cap β¨
π¦ Public Member Functions inherited from SoNode
not me listing every single one, because bestie, we do NOT skip:
void setOverride (const SbBool state)β inherited, signature's the whole story πSbBool isOverride (void) constβ inherited, no notes πvoid setNodeType (const NodeType type)β inherited β¨NodeType getNodeType (void) constβ inherited β¨virtual SoNode * copy (SbBool copyconnections=FALSE) constβ inherited, and yes,copyconnectionsdefaults toFALSEπΈvirtual SbBool affectsState (void) constβ inherited πvirtual void doAction (SoAction *action)β inherited π¦virtual void GLRender (SoGLRenderAction *action)β inherited π¦virtual void GLRenderBelowPath (SoGLRenderAction *action)β inherited π¦virtual void GLRenderInPath (SoGLRenderAction *action)β inherited π¦virtual void GLRenderOffPath (SoGLRenderAction *action)β inherited π¦virtual void callback (SoCallbackAction *action)β inherited πvirtual void getBoundingBox (SoGetBoundingBoxAction *action)β inherited πvirtual void getMatrix (SoGetMatrixAction *action)β inherited πvirtual void handleEvent (SoHandleEventAction *action)β inherited πvirtual void pick (SoPickAction *action)β inherited πvirtual void rayPick (SoRayPickAction *action)β inherited πvirtual void search (SoSearchAction *action)β inherited πvirtual void write (SoWriteAction *action)β inherited πvirtual void audioRender (SoAudioRenderAction *action)β inherited π§virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)β inherited π§virtual void grabEventsSetup (void)β inherited πvirtual void grabEventsCleanup (void)β inherited πvirtual void startNotify (void)β inherited πvirtual void notify (SoNotList *l)β inherited πSbUniqueId getNodeId (void) constβ inherited βvirtual SoChildList * getChildren (void) constβ inherited βvirtual void writeInstance (SoOutput *out)β inherited βvirtual SoNode * addToCopyDict (void) constβ inherited βvirtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)β inherited βvirtual SoFieldContainer * copyThroughConnection (void) constβ inherited β
π Public Member Functions inherited from SoFieldContainer
void setToDefaults (void)β inherited, no deets given π«ΆSbBool hasDefaultValues (void) constβ inherited π«ΆSbBool fieldsAreEqual (const SoFieldContainer *container) constβ inherited π«Άvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)β inherited,copyconnectionsdefaults toFALSEπ«ΆSbBool set (const char *const fielddata)β inherited πvoid get (SbString &fielddata)β inherited πvirtual int getFields (SoFieldList &l) constβ inherited πvirtual int getAllFields (SoFieldList &l) constβ inherited πvirtual SoField * getField (const SbName &name) constβ inherited πvirtual SoField * getEventIn (const SbName &name) constβ inherited πvirtual SoField * getEventOut (const SbName &name) constβ inherited πSbBool getFieldName (const SoField *const field, SbName &name) constβ inherited π§SbBool enableNotify (const SbBool flag)β inherited π§SbBool isNotifyEnabled (void) constβ inherited π§SbBool set (const char *fielddata, SoInput *input)β inherited π§void get (SbString &fielddata, SoOutput *out)β inherited π§virtual SbBool validateNewFieldValue (SoField *field, void *newval)β inherited π§virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)β inherited,isfromfielddefaults toFALSEπ§SbBool getIsBuiltIn (void) constβ inherited π§virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constβ inherited π§void setUserData (void *userdata) constβ inherited π§void * getUserData (void) constβ inherited π§
π Public Member Functions inherited from SoBase
void ref (void) constβ inherited, no notes πvoid unref (void) constβ inherited πvoid unrefNoDelete (void) constβ inherited πint32_t getRefCount (void) constβ inherited πvoid touch (void)β inherited πSbBool isOfType (SoType type) constβ ReturnsTRUEif the type of this object is either of the same type or inherited fromtype. okay that one actually has lore πvirtual SbName getName (void) constβ inherited πΈvirtual void setName (const SbName &newname)β inherited πΈvoid addAuditor (void *const auditor, const SoNotRec::Type type)β inherited πΈvoid removeAuditor (void *const auditor, const SoNotRec::Type type)β inherited πΈconst SoAuditorList & getAuditors (void) constβ inherited πΈSbBool shouldWrite (void)β inherited πΈvoid assertAlive (void) constβ inherited πΈ
π Static Public Member Functions
static SoType getClassTypeId (void)β inherited, no description attached πstatic void initClass ()β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. that's the one that actually does the setting-up, bestie β¨
π« Static Public Member Functions inherited from SoUniformShaderParameter
static SoType getClassTypeId (void)β inherited π¦static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π¦
π« Static Public Member Functions inherited from SoShaderParameter
static SoType getClassTypeId (void)β inherited πstatic void initClass ()β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π
π« Static Public Member Functions inherited from SoNode
static uint32_t getCompatibilityTypes (const SoType &nodetype)β inherited βstatic SoType getClassTypeId (void)β inherited βstatic SoNode * getByName (const SbName &name)β inherited βstatic int getByName (const SbName &name, SoNodeList &l)β inherited βstatic void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. βstatic void initClasses (void)β inherited βstatic SbUniqueId getNextNodeId (void)β inherited βstatic int getActionMethodIndex (const SoType type)β inherited βstatic void getBoundingBoxS (SoAction *action, SoNode *node)β inherited βstatic void GLRenderS (SoAction *action, SoNode *node)β inherited βstatic void callbackS (SoAction *action, SoNode *node)β inherited βstatic void getMatrixS (SoAction *action, SoNode *node)β inherited βstatic void handleEventS (SoAction *action, SoNode *node)β inherited βstatic void pickS (SoAction *action, SoNode *node)β inherited βstatic void rayPickS (SoAction *action, SoNode *node)β inherited βstatic void searchS (SoAction *action, SoNode *node)β inherited βstatic void writeS (SoAction *action, SoNode *node)β inherited βstatic void audioRenderS (SoAction *action, SoNode *node)β inherited βstatic void getPrimitiveCountS (SoAction *action, SoNode *node)β inherited β
π« Static Public Member Functions inherited from SoFieldContainer
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. πstatic SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. πstatic void cleanupClass (void)β inherited πstatic void initCopyDict (void)β inherited πstatic void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)β inherited πstatic SoFieldContainer * checkCopy (const SoFieldContainer *orig)β inherited πstatic SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)β inherited πstatic void copyDone (void)β inherited π
π« Static Public Member Functions inherited from SoBase
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π§static SoType getClassTypeId (void)β This static method returns theSoTypeobject associated with objects of this class. π§static void addName (SoBase *const base, const char *const name)β inherited π§static void removeName (SoBase *const base, const char *const name)β inherited π§static void incrementCurrentWriteCounter (void)β inherited π§static void decrementCurrentWriteCounter (void)β inherited π§static SoBase * getNamedBase (const SbName &name, SoType type)β inherited π§static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)β inherited π§static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)β inherited π§static void setInstancePrefix (const SbString &c)β inherited π§static void setTraceRefs (SbBool trace)β inherited π§static SbBool getTraceRefs (void)β inherited π§static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)β inherited π§static SbBool readRoute (SoInput *input)β inherited π§
π Public Attributes
SoSFInt32 valueβ the actual integer parameter, the star of the show π
Public Attributes inherited from SoShaderParameter
SoSFString nameβ inherited πSoSFInt32 identifierβ inherited π
πΈ Protected Member Functions
virtual const SoFieldData * getFieldData (void) constβ protected, inherited vibes only π«Ά
Protected Member Functions inherited from SoUniformShaderParameter
SoGLShaderParameter * getGLShaderParameter (const uint32_t cachecontext)β inherited π¦void ensureParameter (SoGLShaderObject *shader)β inherited π¦
Protected Member Functions inherited from SoShaderParameter
SoShaderParameter ()β the constructor, protected, no deets πvirtual ~SoShaderParameter ()β the destructor, also protected π
Protected Member Functions inherited from SoNode
SoNode (void)β inherited πvirtual ~SoNode ()β inherited πvirtual SbBool readInstance (SoInput *in, unsigned short flags)β inherited π
Protected Member Functions inherited from SoFieldContainer
SoFieldContainer (void)β inherited πvirtual ~SoFieldContainer ()β inherited π
Protected Member Functions inherited from SoBase
SoBase (void)β inherited πvirtual ~SoBase ()β inherited πvirtual void destroy (void)β inherited πSbBool hasMultipleWriteRefs (void) constβ inherited πSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constβ inherited πvoid writeFooter (SoOutput *out) constβ inherited πvirtual const char * getFileFormatName (void) constβ inherited πvirtual SoNotRec createNotRec (void)β inherited π
β Static Protected Member Functions
static const SoFieldData ** getFieldDataPtr (void)β static, protected, no notes π«
Static Protected Member Functions inherited from SoUniformShaderParameter
static const SoFieldData ** getFieldDataPtr (void)β inherited π¦
Static Protected Member Functions inherited from SoShaderParameter
static const SoFieldData ** getFieldDataPtr (void)β inherited π
Static Protected Member Functions inherited from SoNode
static const SoFieldData ** getFieldDataPtr (void)β inherited βstatic void setNextActionMethodIndex (int index)β inherited βstatic int getNextActionMethodIndex (void)β inherited βstatic void incNextActionMethodIndex (void)β inherited βstatic void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)β inherited β
Static Protected Member Functions inherited from SoBase
static uint32_t getCurrentWriteCounter (void)β inherited π§static void staticDataLock (void)β inherited π§static void staticDataUnlock (void)β inherited π§
π Additional Inherited Members
Public Types inherited from SoNode
the enum, in all its glory, every single value, don't blink bestie:
enum NodeType { INVENTOR = 0x0000, VRML1 = 0x0001, VRML2 = 0x0002,
INVENTOR_1 = 0x0004, INVENTOR_2_0 = 0x0008, INVENTOR_2_1 = 0x0010,
INVENTOR_2_5 = 0x0020, INVENTOR_2_6 = 0x0040, COIN_1_0 = 0x0080,
COIN_2_0 = 0x0100, EXTENSION = 0x0200, COIN_2_2 = 0x0400, COIN_2_3 =
0x0800, COIN_2_4 = 0x1000, INVENTOR_5_0 = 0x2000, COIN_2_5 = 0x4000,
COIN_3_0 = 0x8000, INVENTOR_6_0 = 0x10000, COIN_4_0 = 0x20000 }
Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
Protected Attributes inherited from SoNode
SbUniqueId uniqueIdβ protected, inherited π«Ά
Protected Attributes inherited from SoFieldContainer
SbBool isBuiltInβ protected, inherited π«Ά
Static Protected Attributes inherited from SoNode
static SbUniqueId nextUniqueId = 1β static, protected, and yes it starts at1βstatic int nextActionMethodIndex = 0β static, protected, starts at0β
π Detailed Description
The SoShaderParameter1i class is used to define an integer value as shader parameter.
that's the whole deal, bestie β one integer, straight to the shader, no cap π
and we are not done yet, the next chunk keeps rolling π
β¨ Member Function Documentation β¨
Here's where we get into the actual functions, bestie β the lil methods that do the work behind the scenes. Buckle up π
πΈ SoType SoShaderParameter1i::getClassTypeId (void ) β [static]
This static method returns the SoType object associated with objects of this class.
Lowkey iconic behavior: ask the class itself for its type, no instance needed π
π SoType SoShaderParameter1i::getTypeId (void ) const β [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
fr fr this is how the library figures out what you actually are at runtime before it casts you down the inheritance tree π
Reimplemented from SoUniformShaderParameter.
π¦ const SoFieldData ** SoShaderParameter1i::getFieldDataPtr (void ) β [static], [protected]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Returns the SoFieldData class which holds information about fields in this node.
ngl if you're not hacking on Coin itself, this one is not your main character moment π it's giving "internal business, nothing to see here"
π const SoFieldData * SoShaderParameter1i::getFieldData (void ) const β [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.
yes, NULL β that's your cue that there's just nothing there, no drama β¨
Reimplemented from SoUniformShaderParameter.
π void SoShaderParameter1i::updateParameter (SoGLShaderObject * shaderObject) β [virtual]
Updates the shader parameter in the OpenGL state with the content of the value field.
So basically: whatever's chilling in value gets pushed out into the OpenGL state. That's the whole job. She ate and left no crumbs π₯
Implements SoUniformShaderParameter.
π«Ά Member Data Documentation π«Ά
β SoSFInt32 SoShaderParameter1i::value
The shader parameter value.
Yep. That's the one. The actual number your shader is getting fed π
π Author π
Generated automatically by Doxygen for Coin from the source code.
And that's a wrap on SoShaderParameter1i(3), bestie!! π
This whole thing is from Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00 β go forth and parameterize your shaders responsibly, ily, mwah ππβ¨
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms