yyagl.library package

Submodules

yyagl.library.audio module

class yyagl.library.audio.AudioSound(fpath)

Bases: object

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

yyagl.library.builder module

class yyagl.library.builder.LibraryBuilder

Bases: object

static build()
cls

alias of LibraryPanda3D

yyagl.library.gfx module

class yyagl.library.gfx.GfxMgr

Bases: object

static init(model_path, antialiasing)
load_model(filename, callback=None, extra_args=, []anim=None)
class yyagl.library.gfx.Node

Bases: object

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.joystick module

class yyagl.library.joystick.JoystickMgr

Bases: object

destroy()
get_joystick()
static has_support()
init_joystick()

yyagl.library.library module

class yyagl.library.library.Library

Bases: object

add_task(mth, priority=0)
build_version
static configure()
curr_path
do_later(time, mth, 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
send(msg)
set_volume(vol)
task_cont = None
user_appdata_dir()

yyagl.library.network module

class yyagl.library.network.ConnectionListener(conn_mgr)

Bases: object

add_conn(tcp_socket)
conn_avail()
get_conn()
class yyagl.library.network.ConnectionMgr

Bases: object

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

Bases: object

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

Bases: object

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

Bases: object

get_bool()
get_float()
get_int()
get_string()
class yyagl.library.network.WriteDatagram

Bases: object

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

yyagl.library.particle module

class yyagl.library.particle.Particle

Bases: object

static set_nodepath()
static set_shader()

yyagl.library.pause module

class yyagl.library.pause.Pause

Bases: object

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

yyagl.library.phys module

class yyagl.library.phys.Contact(contact)

Bases: object

get_node0()
get_node1()
class yyagl.library.phys.PhysWorld

Bases: object

attach_ghost(node)
attach_rigid_body(node)
attach_vehicle(node)
do_physics(dt, num_substeps, size_substeps)
get_contacts(node)
init_debug()
ray_test_all(node, mask=None)
ray_test_closest(a, b, mask=None)
remove_ghost(node)
remove_rigid_body(node)
remove_vehicle(node)
set_gravity(vec)
stop()

yyagl.library.shader module

class yyagl.library.shader.LibShaderMgr(shaders, gamma)

Bases: object

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()

yyagl.library.vec module

class yyagl.library.vec.Vec(x, y, z)

Bases: object

normalize()
rotate(deg)
class yyagl.library.vec.Vec2(x, y)

Bases: object

normalize()
signed_angle_deg(vec)

Module contents

Table Of Contents

Previous topic

yyagl.engine.network package

Next topic

yyagl.library.bullet package

This Page

Please, support us!




Flattr this