MCPcopy Create free account

hub / github.com/Permafacture/data-oriented-pyglet / functions

Functions127 in github.com/Permafacture/data-oriented-pyglet

↓ 24 callersMethodstage_add
(self,guid,value_tuple)
numpy_ecs/table.py:150
↓ 11 callersMethodadd
(self,values_dict,guid=None)
numpy_ecs/global_allocator.py:157
↓ 10 callersMethod_defrag
(self)
numpy_ecs/global_allocator.py:185
↓ 4 callersMethodcompress
(self,)
numpy_ecs/table.py:313
↓ 3 callersMethodcopy
(self)
numpy_ecs/table.py:77
↓ 3 callersFunctionpolyOfN
helper function for making polygons
examples/color_change_test.py:74
↓ 3 callersFunctionwind_vertices
(pts)
examples/color_change_test.py:82
↓ 2 callersMethod_rebuild_references
Get the up to date slices for all the attributes
numpy_ecs/accessors.py:67
↓ 2 callersFunctionadd_rotating_regular_polygon
(n_sides,radius,position,rate, color=(.5,.5,.5),allocator=allocator)
examples/hero1.py:97
↓ 2 callersFunctionadd_some
add n random polygons to allocator There's two types of polygons. if only n is given, will distribute randomly. if n2 is given, distibute n t
examples/add-delete.py:167
↓ 2 callersMethodmask_slices
(string,)::col_names - to use as a mask. (string,)::indices - form of S+INDEX_SEPERATOR+T. S broadcasting to T (sizes in S
numpy_ecs/table.py:251
↓ 2 callersFunctionmass_rotate
(initial_data,theta)
examples/second.py:147
↓ 2 callersFunctionpolyOfN
helper function for making polygons
examples/hero1.py:69
↓ 2 callersFunctionpolyOfN
helper function for making polygons
examples/polygons.py:67
↓ 2 callersFunctionpolyOfN
helper function for making polygons
examples/add-delete.py:60
↓ 2 callersMethodrotate
(self,theta)
examples/first.py:113
↓ 2 callersMethodsection_slices
return a list of slices that represent the portions of each column that corrispond to the known class ids in order. For known ids not
numpy_ecs/table.py:196
↓ 2 callersFunctionslice_is_not_empty
(s)
numpy_ecs/table.py:83
↓ 2 callersMethodslices_from_guid
(self,guid)
numpy_ecs/table.py:423
↓ 2 callersFunctionwind_pts
take clockwise or counter clockwise points and wind them as would be needed for rendering as triangle strips
examples/animated_test.py:58
↓ 2 callersFunctionwind_vertices
(pts)
examples/hero1.py:77
↓ 2 callersFunctionwind_vertices
(pts)
examples/polygons.py:75
↓ 2 callersFunctionwind_vertices
(pts)
examples/add-delete.py:68
↓ 1 callersFunction_nearest_pow2
(v)
numpy_ecs/components.py:23
↓ 1 callersMethodaccessor_from_guid
(self,guid)
numpy_ecs/global_allocator.py:118
↓ 1 callersFunctionadd_regular_polygon
(n_sides,radius,position, color=(.5,.5,.5),allocator=allocator)
examples/hero1.py:113
↓ 1 callersFunctionadd_regular_polygon
(n_sides,radius,position, color=(.5,.5,.5),allocator=allocator)
examples/color_change_test.py:134
↓ 1 callersFunctionadd_regular_polygon
(n_sides,radius,position, color=(.5,.5,.5),allocator=allocator)
examples/polygons.py:110
↓ 1 callersFunctionadd_regular_polygon
(n_sides,radius,position, color=(.5,.5,.5),allocator=allocator)
examples/add-delete.py:103
↓ 1 callersFunctionadd_rotating_color_changing_polygon
(n_sides,radius,position,rate, color=(.5,.5,.5),allocator=allocator)
examples/color_change_test.py:117
↓ 1 callersFunctionadd_rotating_regular_polygon
(n_sides,radius,position,rate, color=(.5,.5,.5),allocator=allocator)
examples/color_change_test.py:102
↓ 1 callersFunctionadd_rotating_regular_polygon
(n_sides,radius,position,rate, color=(.5,.5,.5),allocator=allocator)
examples/polygons.py:95
↓ 1 callersFunctionadd_rotating_regular_polygon
(n_sides,radius,position,rate, color=(.5,.5,.5),allocator=allocator)
examples/add-delete.py:88
↓ 1 callersFunctionadd_sprite
(width,height,position,rate,anim_start=0, first_frame=0, anim_stop=1, anim_step=1, allocator=alloc
examples/animated_test.py:94
↓ 1 callersFunctionarray_rotate
(initiald)
examples/compare.py:42
↓ 1 callersMethodassert_capacity
make certain Component is atleast `new_capcpity` big. resizing if necessary.
numpy_ecs/components.py:60
↓ 1 callersMethoddelete
(self,guid)
numpy_ecs/global_allocator.py:181
↓ 1 callersFunctiondelete_some
(n,allocator=allocator)
examples/add-delete.py:206
↓ 1 callersFunctiondone_yet
(duration = run_for, start=time.time())
examples/second.py:46
↓ 1 callersFunctiondone_yet
(duration = run_for, start=time.time())
examples/first.py:37
↓ 1 callersFunctiondraw
draw the numpy arrays `verts` and `colors`.
examples/second.py:61
↓ 1 callersFunctiondraw
()
examples/first.py:52
↓ 1 callersMethodentity_class_from_tuple
takes a component tuple like (5,5,0,2,2,2) returns a normalized tuple that is a class id, like (1,1,0,1,1,1)
numpy_ecs/table.py:125
↓ 1 callersFunctiongen_initiald
(n)
examples/compare.py:26
↓ 1 callersMethodgenerate_accessor
return a DataAccessor class that can be instatiated with a guid to provide an object oriented interface with the data associated with
numpy_ecs/accessors.py:115
↓ 1 callersMethodinitializeVertices
(self)
examples/second.py:97
↓ 1 callersMethodinitializeVertices
(self)
examples/first.py:85
↓ 1 callersMethodis_valid_query
(self,query,sep=INDEX_SEPERATOR)
numpy_ecs/global_allocator.py:235
↓ 1 callersFunctionlist_rotate
(initiald)
examples/compare.py:33
↓ 1 callersMethodmake_starts_table
Create a list of tuples where each value is the start index of that element. (Table is the sizes)
numpy_ecs/table.py:165
↓ 1 callersFunctionpolyOfN
(radius,n)
examples/second.py:77
↓ 1 callersFunctionpolyOfN
(radius,n)
examples/first.py:63
↓ 1 callersMethodrotate_and_render
(self,angle)
examples/first.py:123
↓ 1 callersMethodrows_from_class_ids
container::class_ids - must be contiguous returns ((start,), (row1,row2, ...)) - tuple of starts of section and then all
numpy_ecs/table.py:223
↓ 1 callersMethodset_colors
(self)
examples/second.py:121
↓ 1 callersMethodset_colors
(self)
examples/first.py:110
↓ 1 callersMethodstage_delete
mark guid None so it can be removed later
numpy_ecs/table.py:161
↓ 1 callersFunctionupdate_animation
(tex_coords,animator,animation_lookup=animation_lookup)
examples/animated_test.py:121
↓ 1 callersFunctionupdate_colors
(color,color_changer,indices=[])
examples/color_change_test.py:154
↓ 1 callersFunctionupdate_display
(render_verts,colors)
examples/hero1.py:163
↓ 1 callersFunctionupdate_display
(render_verts,colors)
examples/color_change_test.py:210
↓ 1 callersFunctionupdate_display
(verts,tex_coords,texture=bird_texture)
examples/animated_test.py:142
↓ 1 callersFunctionupdate_display
(render_verts,colors)
examples/polygons.py:167
↓ 1 callersFunctionupdate_display
(render_verts,colors)
examples/add-delete.py:152
↓ 1 callersFunctionupdate_position
(velocity,position)
examples/animated_test.py:114
↓ 1 callersFunctionupdate_render_verts
Update vertices to render based on positions and angles communicated through the data accessors
examples/hero1.py:135
↓ 1 callersFunctionupdate_render_verts
Update vertices to render based on positions and angles communicated through the data accessors
examples/color_change_test.py:182
↓ 1 callersFunctionupdate_render_verts
Update vertices to render based on positions
examples/animated_test.py:135
↓ 1 callersFunctionupdate_render_verts
Update vertices to render based on positions and angles communicated through the data accessors
examples/polygons.py:139
↓ 1 callersFunctionupdate_render_verts
Update vertices to render based on positions and angles communicated through the data accessors
examples/add-delete.py:124
↓ 1 callersFunctionupdate_rotator
(rotator)
examples/hero1.py:125
↓ 1 callersFunctionupdate_rotator
(rotator)
examples/color_change_test.py:145
↓ 1 callersFunctionupdate_rotator
(rotator)
examples/polygons.py:129
↓ 1 callersFunctionupdate_rotator
(rotator)
examples/add-delete.py:114
↓ 1 callersFunctionwind_vertices
wind pts and pre-compute data that is helpful for transformations
examples/animated_test.py:81
Method__add__
(self,other)
numpy_ecs/table.py:52
Method__eq__
(self,other)
numpy_ecs/table.py:62
Method__getitem__
(self,index)
numpy_ecs/table.py:80
Method__getitem__
(self,selector)
numpy_ecs/components.py:85
Method__init__
(self,*values)
numpy_ecs/table.py:44
Method__init__
column names is a tuple of strings that define, in order, the names of the columns present in this table. class_ids is a tuple of tuples
numpy_ecs/table.py:98
Method__init__
(self,guid)
numpy_ecs/accessors.py:51
Method__init__
(self,allocator)
numpy_ecs/accessors.py:91
Method__init__
(self,components,allocation_scheme)
numpy_ecs/global_allocator.py:105
Method__init__
create a numpy array buffer of shape (size,dim) with dtype==dtype
numpy_ecs/components.py:37
Method__init__
(self,pts, position=None, color=None, radius=0)
examples/second.py:87
Method__init__
(self,pts, position=None, color=None, radius=0)
examples/first.py:75
Method__iter__
(self)
numpy_ecs/table.py:74
Method__len__
(self)
numpy_ecs/table.py:71
Method__ne__
(self,other)
numpy_ecs/table.py:65
Method__repr__
(self)
numpy_ecs/table.py:68
Method__repr__
(self)
numpy_ecs/accessors.py:85
Method__repr__
(self)
numpy_ecs/components.py:110
Method__setitem__
(self,selector,data)
numpy_ecs/components.py:89
Method__str__
(self)
numpy_ecs/table.py:498
Method__sub__
(self,other)
numpy_ecs/table.py:57
Method_resize_multidim
(self,count)
numpy_ecs/components.py:93
Method_resize_singledim
(self,count)
numpy_ecs/components.py:102
Functionapply_animation
(this)
examples/animated_test.py:194
Methodattribute_getter_factory
generate a getter for this component_name into the Component data array
numpy_ecs/accessors.py:94
next →1–100 of 127, ranked by callers