Skip to main content

C++ Effekseer extension for 3D and 2D games.

Project description

igeEffekseer

C++ extension Effekseer for 3D and 2D games.

Before running this tutorial, you have to install igeEffekseer

[pip install igeEffekseer]

The Editor

Get from link : https://effekseer.github.io/en/download.html

Tutorial

https://github.com/indigames/pyxieTutorials/tree/dev/igeEffekseer

Support

  • Effeck : .efk
  • Texture : .pyxi

APIs

Functions

  • static

    • texture_loader
      • set the texture loader callback
      • use igeCore as a helper to load the texture then give back the texture information (width, height, id, has_mipmap)
       textures = {}
       def f_texture_loader(name, type):
       	print('f_texture_loader - ' + name)
       	tex = core.texture(name)    
       	textures[name] = tex
       	return (tex.width, tex.height, tex.id, tex.numMips > 1)
      
       igeEffekseer.texture_loader(f_texture_loader)
      
  • getset

     _particle = igeEffekseer.particle()
    
    • framerate
      • the desired framerate
      • 60 fps as default
       _particle.framerate = 60.0
      
  • particle

     _particle = igeEffekseer.particle()
    
    • shoot
      • update then render the effekseer system
      • shoot(delta_time, clean_screen)
        • delta_time : float
        • clean_screen : bool optional
       _particle.shoot(core.getElapsedTime())
      
    • add
      • add the effect to the effekseer system
      • handle = _particle.add(name, loop, position, rotation, scale)
        • name : string
          • the effect string path
        • loop : bool optional
          • Optional Is looping or not
        • position : tuple
          • Optional The position optional
        • rotation : tuple
          • Optional The rotation optional
        • scale : tuple
          • Optional The scale optional
       _distortion_handle = _particle.add(name='Simple_Distortion.efk', loop=True, position=(0.0, 0.0, 0.0))
      
    • remove
      • remove the effect from effekseer system
      • _particle.remove(handle)
        • handle : int
          • the effect handle
       _particle.remove(_distortion_hd)
      
    • stop_all_effects
      • remove | stop all the effect from effekseer system
       _particle.stop_all_effects()
      
    • set_target_location
      • set target location for the effect handle
      • _particle.set_target_location(handle, x, y, z)
        • handle : int
          • the effect handle
        • x, y, z : float location
    • get_location
      • get location from the effect handle
      • result = _particle.get_location(handle)
        • handle : int
          • the effect handle
        • result : tuple location
    • set_location
      • set location for the effect handle
      • _particle.set_location(handle, x, y, z)
        • handle : int
          • the effect handle
        • x, y, z : float location
    • set_rotation
      • set rotation for the effect handle
      • _particle.set_rotation(handle, x, y, z)
        • handle : int
          • the effect handle
        • x, y, z : float rotation
    • set_scale
      • set scale for the effect handle
      • _particle.set_scale(handle, x, y, z)
        • handle : int
          • the effect handle
        • x, y, z : float scale
    • set_color
      • set scale for the effect handle
      • _particle.set_scale(handle, red, green, blue, alpha)
        • handle : int
          • the effect handle
        • red, green, blue, alpha : int value channel (0-255)
    • get_speed
      • get speed from the effect handle
      • result = _particle.get_speed(handle)
        • handle : int
          • the effect handle
        • result : float speed
    • set_speed
      • set speed for the effect handle
      • _particle.set_speed(handle, speed)
        • handle : int
          • the effect handle
        • speed : float value
    • is_playing
      • checking the effect is playing
      • result = _particle.is_playing(handle)
        • handle : int
          • the effect handle
        • result : bool. True if the effect is playing
    • set_pause
      • pause the effect handle
      • _particle.set_pause(handle, paused)
        • handle : int
          • the effect handle
        • paused : bool value
    • get_pause
      • get the pause status from the effect handle
      • result = _particle.get_pause(handle)
        • handle : int
          • the effect handle
        • result : bool value
    • set_shown
      • switch between show or hide of the effect handle
      • _particle.set_shown(handle, shown)
        • handle : int
          • the effect handle
        • shown : bool value
    • get_shown
      • get the show status from the effect handle
      • result = _particle.get_shown(handle)
        • handle : int
          • the effect handle
        • result : bool value
    • set_loop
      • loop (true / false)
      • _particle.set_loop(handle, loop)
        • handle : int
          • the effect handle
        • loop : bool value
    • get_loop
      • get the loop status from the effect handle
      • result = _particle.get_loop(handle)
        • handle : int
          • the effect handle
        • result : bool value
  • statistic

    • drawcall_count
      • return the drawcall count
      • count = _particle.drawcall_count()
    • vertex_count
      • return the draw vertex count
      • count = _particle.vertex_count()
    • update_time
      • return the update time take
      • time = _particle.update_time()
      • time : int (micro second)
    • draw_time
      • return the draw time take
      • time = _particle.draw_time()
      • time : int (micro second)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igeEffekseer-0.1.7.tar.gz (6.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

igeEffekseer-0.1.7-cp39-cp39-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.9Windows x86-64

igeEffekseer-0.1.7-cp37-cp37m-win32.whl (10.2 MB view details)

Uploaded CPython 3.7mWindows x86

File details

Details for the file igeEffekseer-0.1.7.tar.gz.

File metadata

  • Download URL: igeEffekseer-0.1.7.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for igeEffekseer-0.1.7.tar.gz
Algorithm Hash digest
SHA256 34c0f8e04291a76c1bdbc51237044339f853f903baef5e10123ce543dd0ffc15
MD5 1e3925855d2f875f18741bfd29a40966
BLAKE2b-256 e3636ef99ec23fc1aaa84c82bc1500fe4ecebbf8269d07b5cebdbb1dc4b79a60

See more details on using hashes here.

File details

Details for the file igeEffekseer-0.1.7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: igeEffekseer-0.1.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for igeEffekseer-0.1.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 345c59b778a217bc1142d8acea9374c2f5df05e0339da02796e500822b4e0a3d
MD5 d8e6b04ba32d0035c31bd498b35d1aa1
BLAKE2b-256 931f3bfd9c06a673894a8a98891420f5bf502e8067f1ba8a93972cf3b1dc8554

See more details on using hashes here.

File details

Details for the file igeEffekseer-0.1.7-cp37-cp37m-win32.whl.

File metadata

  • Download URL: igeEffekseer-0.1.7-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for igeEffekseer-0.1.7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 c9177f002aaa959a57ac274f60ad913453f1f51073e0fc724feeecc4114b989f
MD5 07ff8f151b5a57230381e5ea05e3f9dc
BLAKE2b-256 a5345a46b19fc45b916c5c79714cd43e0f1961d5dec7b66a45b3dc6d33e15225

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page