yyagl.library.panda package

Submodules

yyagl.library.panda.audio module

class yyagl.library.panda.audio.PandaAudioSound(fpath)

Bases: yyagl.library.audio.AudioSound

is_playing()
play()
set_loop(val)
set_play_rate(val)
set_volume(val)
stop()

yyagl.library.panda.gfx module

class yyagl.library.panda.gfx.PandaGfxMgr

Bases: yyagl.library.gfx.GfxMgr

static init(model_path, antialiasing)
load_model(filename, callback=None, extra_args=, []anim=None)
print_stats()
static set_toon()
class yyagl.library.panda.gfx.PandaNode(np)

Bases: yyagl.library.gfx.Node

add_shape(shape)
attach_node(name)
cleanup()
clear_model_nodes()
find(name)
find_all_matches(name)
flatten_strong()
get_children()
get_distance(other_node)
get_h()
get_hpr()
get_name()
get_node()
get_p()
get_parent()
get_pos(other=None)
get_python_tag(name)
get_r()
get_relative_vector(node, vec)
get_scale()
get_tag(name)
get_tight_bounds()
get_transform(node)
get_x()
get_y()
get_z()
has_tag(name)
hide(mask=None)
is_empty()
loop(name)
premunge_scene()
prepare_scene()
remove_node()
reparent_to(parent)
set_alpha_scale(val)
set_collide_mask(mask)
set_depth_offset(offset)
set_h(h)
set_hpr(hpr)
set_material(material)
set_p(p)
set_pos(pos)
set_python_tag(name, val)
set_r(r)
set_scale(scale)
set_texture(ts, texture)
set_transparency(val)
set_x(x)
set_y(y)
set_z(z)
show()
write_bam_file(fpath)
wrt_reparent_to(parent)

yyagl.library.panda.network module

class yyagl.library.panda.network.PandaConnectionListener(conn_mgr)

Bases: yyagl.library.network.ConnectionListener

add_conn(tcp_socket)
conn_avail()
get_conn()
class yyagl.library.panda.network.PandaConnectionMgr

Bases: yyagl.library.network.ConnectionMgr

open_TCP_client_connection(hostname, port, timeout_ms)
open_TCP_server_rendezvous(port, backlog)
class yyagl.library.panda.network.PandaConnectionReader(conn_mgr)

Bases: yyagl.library.network.ConnectionReader

add_conn(conn)
data_available()
destroy()
get()
class yyagl.library.panda.network.PandaConnectionWriter(conn_mgr)

Bases: yyagl.library.network.ConnectionWriter

destroy()
send(msg, dst)
class yyagl.library.panda.network.PandaDatagramIterator(datagram)

Bases: yyagl.library.network.DatagramIterator

get_bool()
get_float()
get_int()
get_string()
class yyagl.library.panda.network.PandaWriteDatagram

Bases: yyagl.library.network.WriteDatagram

add_bool(val)
add_float(val)
add_int(val)
add_string(val)

yyagl.library.panda.panda module

class yyagl.library.panda.panda.LibShowBase(fStartDirect=True, windowType=None)

Bases: direct.showbase.ShowBase.ShowBase

class yyagl.library.panda.panda.LibraryPanda3D

Bases: yyagl.library.library.Library, direct.showbase.DirectObject.DirectObject

add_task(mth, priority=0)
build_version
static configure()
curr_path
do_later(time, meth, args=[])
driver_renderer()
driver_shader_version_major()
driver_shader_version_minor()
driver_vendor()
driver_version()
driver_version_major()
driver_version_minor()
static find_geoms(model, name)
fullscreen()
init(green=(0.2, 0.8, 0.2, 1), red=(0.8, 0.2, 0.2, 1))
last_frame_dt()
lib_commit()
lib_version()
load_font(fpath, outline=True)
log(msg)
phys_version()
remove_task(tsk)
resolution()
runtime = False
send(msg)
set_volume(vol)
task_cont = 1
user_appdata_dir()

yyagl.library.panda.particle module

class yyagl.library.panda.particle.PandaParticle

Bases: object

num_particles = 10000
rate = 0.0001
static set_nodepath(parent, pos, hpr)
static set_shader(np, color, tot_time)

yyagl.library.panda.pause module

class yyagl.library.panda.pause.PandaPause

Bases: yyagl.library.pause.Pause

is_paused
pause()
pause_tasks()
remove_task(tsk)
resume()

yyagl.library.panda.shader module

class yyagl.library.panda.shader.PandaShaderMgr(shaders, gamma)

Bases: yyagl.library.shader.LibShaderMgr

apply()
clear_lights()
destroy()
set_amb_lgt(col)
static set_default_args(idx)
set_dir_lgt(col, direction)
set_lgt_args(idx, lgt)
set_pnt_lgt(col, pos)
set_shader_pars(model)
set_spotlight(col, exp, cutoff, pos, look_at)
setup_post_fx()
toggle_shader()
class yyagl.library.panda.shader.ShaderSetter

Bases: object

static build(lgt)
class yyagl.library.panda.shader.ShaderSetterAmbient

Bases: yyagl.library.panda.shader.ShaderSetter

static set(pref, lgt)
class yyagl.library.panda.shader.ShaderSetterDirectionalLight

Bases: yyagl.library.panda.shader.ShaderSetter

static set(pref, lgt)
class yyagl.library.panda.shader.ShaderSetterPointLight

Bases: yyagl.library.panda.shader.ShaderSetter

static set(pref, lgt)
class yyagl.library.panda.shader.ShaderSetterSpotlight

Bases: yyagl.library.panda.shader.ShaderSetter

static set(pref, lgt)

yyagl.library.panda.vec module

class yyagl.library.panda.vec.Panda2DVec(x, y)

Bases: yyagl.library.vec.Vec2

normalize()
signed_angle_deg(vec)
class yyagl.library.panda.vec.Panda3DVec(x, y, z)

Bases: yyagl.library.vec.Vec

normalize()
rotate(deg)

Module contents

Table Of Contents

Previous topic

yyagl.library.bullet package

Next topic

yyagl.library.pygamelib package

This Page

Please, support us!




Flattr this