SOTEXTURECOORDINATEBUNDLE(3coin3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– SoTextureC...inateBundle(3) πŸ’–

okay bestie, welcome to the Library Functions Manual section of the Coin docs πŸŽ€ this is the whole tea on SoTextureCoordinateBundle, no cap.


✨ NAME ✨

SoTextureCoordinateBundle β€” the class that simplifies texture coordinate handling. it's giving "let me handle the coords so you don't have to" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <include/Inventor/bundles/SoTextureCoordinateBundle.h>

Inherits SoBundle.

🌸 Public Member Functions 🌸

  • SoTextureCoordinateBundle (SoAction *const action, const SbBool forRendering, const SbBool setUpDefault=TRUE)
  • ~SoTextureCoordinateBundle ()
  • SbBool needCoordinates (void) const
  • SbBool isFunction (void) const
  • const SbVec4f & get (const int index)
  • const SbVec4f & get (const SbVec3f &point, const SbVec3f &normal)
  • void send (const int index) const
  • void send (const int index, const SbVec3f &point, const SbVec3f &normal) const
  • SbBool needIndices (void) const

πŸ‘‘ Additional Inherited Members πŸ‘‘

Protected Member Functions inherited from SoBundle

  • SoBundle (SoAction *action)
  • ~SoBundle ()

Protected Attributes inherited from SoBundle

  • SoState * state β€” the state of the current action. literally the whole vibe of what's happening right now ✨

πŸ’œ Detailed Description πŸ’œ

The SoTextureCoordinateBundle class simplifies texture coordinate handling. that's the whole job bestie, and it does it slayfully 🫢

ngl, it is unlikely that application programmers should need to know how to use this class, because it is mostly intended for internal use. so if you're just out here writing apps, this is lowkey not your moment β€” it's a backstage pass kinda situation 🎭


🧚 Constructor & Destructor Documentation 🧚

SoTextureCoordinateBundle::SoTextureCoordinateBundle (SoAction *const action, const SbBool forRendering, const SbBool setUpDefault = TRUE)

Constructor, with action being the action applied to the node. so like, the action is the main character here πŸ’…

The forRendering parameter must be TRUE if the bundle is to be used for sending texture coordinates to GL during rendering. and the setUpDefault must be TRUE if default texture coordinates should be generated. no skipping this, fr fr ⭐

SoTextureCoordinateBundle::~SoTextureCoordinateBundle ()

Destructor. it's the goodbye era 😭


🌈 Member Function Documentation 🌈

SbBool SoTextureCoordinateBundle::needCoordinates (void ) const

Returns TRUE if texture coordinates is needed during rendering. vibe check on whether we even need these coords πŸ”₯

SbBool SoTextureCoordinateBundle::isFunction (void ) const

Returns TRUE if a texture coordinate function should be used. so like, are we doing the function thing or not πŸ‘€

const SbVec4f & SoTextureCoordinateBundle::get (const int index)

Returns the texture coordinates at index index. should only be used if SoTextureCoordinateBundle::isFunction() is FALSE. read the room, check the function flag first bestie πŸ™ˆ

const SbVec4f & SoTextureCoordinateBundle::get (const SbVec3f & point, const SbVec3f & normal)

Returns the texture coordinates based on point and normal. should only be used if SoTextureCoordinateBundle::isFunction() is TRUE. yes it's the opposite of the other one, i know, that's the plot twist πŸŒ€

void SoTextureCoordinateBundle::send (const int index) const [inline]

Send texture coordinates to GL. should only be used if SoTextureCoordinateBundle::isFunction() is FALSE. sending it straight to GL, periodt πŸ’«

void SoTextureCoordinateBundle::send (const int index, const SbVec3f & point, const SbVec3f & normal) const [inline]

A convenience function that will make it transparent to the rendering code if ordinary texture coordinates or function texture coordinates are used. so the rendering code literally cannot tell the difference β€” iconic behaviour, honestly πŸ‘‘

SbBool SoTextureCoordinateBundle::needIndices (void ) const

Returns TRUE if isFunction() is TRUE, but the texture coordinate indices are needed either by bump mapping or by one of the other texture units. so many moving parts, she's doing the most πŸ’€

Since

Coin 2.2


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. (yes, a robot wrote this, and it ate πŸ€–βœ¨)


okay that's the whole page bestie, we got through it together πŸ₯ΉπŸ’– this was Coin, Version 3.1.3 β€” mwah, love u, go texture some coordinates responsibly πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from