Tabnine Logo
ParticleSystem.getParticleColorBuffer
Code IndexAdd Tabnine to your IDE (free)

How to use
getParticleColorBuffer
method
in
org.jbox2d.particle.ParticleSystem

Best Java code snippets using org.jbox2d.particle.ParticleSystem.getParticleColorBuffer (Showing top 8 results out of 315)

origin: libgdx/libgdx

public ParticleColor[] getParticleColorBuffer() {
 return m_particleSystem.getParticleColorBuffer();
}
origin: libgdx/libgdx

private void drawParticleSystem(ParticleSystem system) {
 boolean wireframe = (m_debugDraw.getFlags() & DebugDraw.e_wireframeDrawingBit) != 0;
 int particleCount = system.getParticleCount();
 if (particleCount != 0) {
  float particleRadius = system.getParticleRadius();
  Vec2[] positionBuffer = system.getParticlePositionBuffer();
  ParticleColor[] colorBuffer = null;
  if (system.m_colorBuffer.data != null) {
   colorBuffer = system.getParticleColorBuffer();
  }
  if (wireframe) {
   m_debugDraw.drawParticlesWireframe(positionBuffer, particleRadius, colorBuffer,
     particleCount);
  } else {
   m_debugDraw.drawParticles(positionBuffer, particleRadius, colorBuffer, particleCount);
  }
 }
}
origin: jbox2d/jbox2d

public ParticleColor[] getParticleColorBuffer() {
 return m_particleSystem.getParticleColorBuffer();
}
origin: jbox2d/jbox2d

private void drawParticleSystem(ParticleSystem system) {
 boolean wireframe = (m_debugDraw.getFlags() & DebugDraw.e_wireframeDrawingBit) != 0;
 int particleCount = system.getParticleCount();
 if (particleCount != 0) {
  float particleRadius = system.getParticleRadius();
  Vec2[] positionBuffer = system.getParticlePositionBuffer();
  ParticleColor[] colorBuffer = null;
  if (system.m_colorBuffer.data != null) {
   colorBuffer = system.getParticleColorBuffer();
  }
  if (wireframe) {
   m_debugDraw.drawParticlesWireframe(positionBuffer, particleRadius, colorBuffer,
     particleCount);
  } else {
   m_debugDraw.drawParticles(positionBuffer, particleRadius, colorBuffer, particleCount);
  }
 }
}
origin: com.github.almasb/fxgl-physics

public ParticleColor[] getParticleColorBuffer() {
  return particleSystem.getParticleColorBuffer();
}
origin: andmizi/MobikeTags

public ParticleColor[] getParticleColorBuffer() {
 return m_particleSystem.getParticleColorBuffer();
}
origin: andmizi/MobikeTags

private void drawParticleSystem(ParticleSystem system) {
 boolean wireframe = (m_debugDraw.getFlags() & DebugDraw.e_wireframeDrawingBit) != 0;
 int particleCount = system.getParticleCount();
 if (particleCount != 0) {
  float particleRadius = system.getParticleRadius();
  Vec2[] positionBuffer = system.getParticlePositionBuffer();
  ParticleColor[] colorBuffer = null;
  if (system.m_colorBuffer.data != null) {
   colorBuffer = system.getParticleColorBuffer();
  }
  if (wireframe) {
   m_debugDraw.drawParticlesWireframe(positionBuffer, particleRadius, colorBuffer,
     particleCount);
  } else {
   m_debugDraw.drawParticles(positionBuffer, particleRadius, colorBuffer, particleCount);
  }
 }
}
origin: com.github.almasb/fxgl-physics

  private void drawParticleSystem(ParticleSystem system) {
    boolean wireframe = (debugDraw.getFlags() & DebugDraw.e_wireframeDrawingBit) != 0;
    int particleCount = system.getParticleCount();
    if (particleCount != 0) {
      float particleRadius = system.getParticleRadius();
      Vec2[] positionBuffer = system.getParticlePositionBuffer();
      ParticleColor[] colorBuffer = null;
      if (system.m_colorBuffer.data != null) {
        colorBuffer = system.getParticleColorBuffer();
      }
      if (wireframe) {
        debugDraw.drawParticlesWireframe(positionBuffer, particleRadius, colorBuffer,
            particleCount);
      } else {
        debugDraw.drawParticles(positionBuffer, particleRadius, colorBuffer, particleCount);
      }
    }
  }
}
org.jbox2d.particleParticleSystemgetParticleColorBuffer

Popular methods of ParticleSystem

  • <init>
  • RotateBuffer
  • addContact
  • computeDepthForGroup
  • computeParticleCollisionEnergy
  • computeRelativeTag
  • computeTag
  • createParticle
  • createParticleGroup
  • destroyParticle
  • destroyParticleGroup
  • destroyParticlesInGroup
  • destroyParticleGroup,
  • destroyParticlesInGroup,
  • destroyParticlesInShape,
  • getCriticalPressure,
  • getCriticalVelocity,
  • getCriticalVelocitySquared,
  • getParticleCount,
  • getParticleDamping,
  • getParticleDensity

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now