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

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

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

origin: libgdx/libgdx

public Vec2[] getParticlePositionBuffer() {
 return m_particleSystem.getParticlePositionBuffer();
}
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 Vec2[] getParticlePositionBuffer() {
 return m_particleSystem.getParticlePositionBuffer();
}
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 Vec2[] getParticlePositionBuffer() {
  return particleSystem.getParticlePositionBuffer();
}
origin: andmizi/MobikeTags

public Vec2[] getParticlePositionBuffer() {
 return m_particleSystem.getParticlePositionBuffer();
}
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.particleParticleSystemgetParticlePositionBuffer

Popular methods of ParticleSystem

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

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • Github Copilot alternatives
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