Package pyffi :: Package formats :: Package dds :: Class DdsFormat :: Class PixelFormat
[hide private]
[frames] | no frames]

Class PixelFormat

source code

                  object --+            
                           |            
      utils.graph.DetailNode --+        
                               |        
          utils.graph.GlobalNode --+    
                                   |    
object_models.xml.struct_.StructBase --+
                                       |
                                      DdsFormat.PixelFormat

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _names = ['size', 'flags', 'four_c_c', 'bit_count', 'r_mask', ...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  a_mask
For non-compressed types, this determinesthe alpha mask.
  b_mask
For non-compressed types, this determinesthe blue mask.
  bit_count
For non-compressed types, this is either 24 or 32 depending on whether there is an alpha channel.
  flags
Non-zero for DX9, zero for DX10.
  four_c_c
Determines compression type.
  g_mask
For non-compressed types, this determinesthe green mask.
  r_mask
For non-compressed types, this determines the red mask.
  size
Always 32.

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x24057d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405810>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405850>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405890>,
 <pyffi.object_models.xml.StructAttribute object at 0x24058d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405910>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405950>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405990>]

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x24057d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405810>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405850>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405890>,
 <pyffi.object_models.xml.StructAttribute object at 0x24058d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405910>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405950>,
 <pyffi.object_models.xml.StructAttribute object at 0x2405990>]

_names

Value:
['size',
 'flags',
 'four_c_c',
 'bit_count',
 'r_mask',
 'g_mask',
 'b_mask',
 'a_mask']

Property Details [hide private]

a_mask

For non-compressed types, this determinesthe alpha mask. Usually 0x00000000 if there is no alpha channel and 0xFF000000 if there is an alpha channel. Is zero for compressed textures.
Get Method:
<functools.partial object at 0x2408cb0>
Set Method:
<functools.partial object at 0x2408d08>

b_mask

For non-compressed types, this determinesthe blue mask. Usually 0x00FF0000. Is zero for compressed textures.
Get Method:
<functools.partial object at 0x2408ba8>
Set Method:
<functools.partial object at 0x2408c00>

bit_count

For non-compressed types, this is either 24 or 32 depending on whether there is an alpha channel. For compressed types, this describes the number of bits per block, which can be either 256 or 512.
Get Method:
<functools.partial object at 0x2408890>
Set Method:
<functools.partial object at 0x24088e8>

flags

Non-zero for DX9, zero for DX10.
Get Method:
<functools.partial object at 0x24086d8>

four_c_c

Determines compression type. Zero means no compression.
Get Method:
<functools.partial object at 0x2408788>
Set Method:
<functools.partial object at 0x24087e0>

g_mask

For non-compressed types, this determinesthe green mask. Usually 0x0000FF00. Is zero for compressed textures.
Get Method:
<functools.partial object at 0x2408aa0>
Set Method:
<functools.partial object at 0x2408af8>

r_mask

For non-compressed types, this determines the red mask. Usually 0x00FF0000. Is zero for compressed textures.
Get Method:
<functools.partial object at 0x2408998>
Set Method:
<functools.partial object at 0x24089f0>

size

Always 32.
Get Method:
<functools.partial object at 0x24085d0>
Set Method:
<functools.partial object at 0x2408628>