mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
9 lines
230 B
Python
9 lines
230 B
Python
from panda3d.core import LVector4f
|
|
|
|
def dgiExtractString8(dgi):
|
|
return dgi.extractBytes(dgi.getUint8())
|
|
|
|
def dgiExtractColor(dgi):
|
|
a, b, c, d = (dgi.getUint8() / 255.0 for _ in xrange(4))
|
|
return LVector4f(a, b, c, d)
|
|
|