congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ParticleSystem.getParticleCount
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: libgdx/libgdx

/**
 * Get the number of particles.
 * 
 * @return
 */
public int getParticleCount() {
 return m_particleSystem.getParticleCount();
}
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

/**
 * Get the number of particles.
 * 
 * @return
 */
public int getParticleCount() {
 return m_particleSystem.getParticleCount();
}
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: andmizi/MobikeTags

/**
 * Get the number of particles.
 * 
 * @return
 */
public int getParticleCount() {
 return m_particleSystem.getParticleCount();
}
origin: com.github.almasb/fxgl-physics

/**
 * @return the number of particles
 */
public int getParticleCount() {
  return particleSystem.getParticleCount();
}
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);
      }
    }
  }
}
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);
  }
 }
}
org.jbox2d.particleParticleSystemgetParticleCount

Popular methods of ParticleSystem

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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