Class LightCache
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.LightCache
-
public class LightCache extends CFacade
Generated facet for DNA struct type 'LightCache'.Class Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD__cube_data
Field descriptor (offset) for struct member 'cube_data'.static long[]
__DNA__FIELD__cube_len
Field descriptor (offset) for struct member 'cube_len'.static long[]
__DNA__FIELD__cube_mips
Field descriptor (offset) for struct member 'cube_mips'.static long[]
__DNA__FIELD__cube_tx
Field descriptor (offset) for struct member 'cube_tx'.static long[]
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.static long[]
__DNA__FIELD__grid_data
Field descriptor (offset) for struct member 'grid_data'.static long[]
__DNA__FIELD__grid_len
Field descriptor (offset) for struct member 'grid_len'.static long[]
__DNA__FIELD__grid_tx
Field descriptor (offset) for struct member 'grid_tx'.static long[]
__DNA__FIELD__mips_len
Field descriptor (offset) for struct member 'mips_len'.static long[]
__DNA__FIELD__ref_res
Field descriptor (offset) for struct member 'ref_res'.static long[]
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.static long[]
__DNA__FIELD__version
Field descriptor (offset) for struct member 'version'.static long[]
__DNA__FIELD__vis_res
Field descriptor (offset) for struct member 'vis_res'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct LightCache.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description LightCache(long __address, Block __block, BlockTable __blockTable)
protected
LightCache(LightCache that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<LightCache>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<CArrayFacade<java.lang.Byte>>
get_pad()
Get method for struct member '_pad'.CPointer<LightProbeCache>
getCube_data()
Get method for struct member 'cube_data'.int
getCube_len()
Get method for struct member 'cube_len'.CPointer<LightCacheTexture>
getCube_mips()
Get method for struct member 'cube_mips'.LightCacheTexture
getCube_tx()
Get method for struct member 'cube_tx'.int
getFlag()
Get method for struct member 'flag'.CPointer<LightGridCache>
getGrid_data()
Get method for struct member 'grid_data'.int
getGrid_len()
Get method for struct member 'grid_len'.LightCacheTexture
getGrid_tx()
Get method for struct member 'grid_tx'.int
getMips_len()
Get method for struct member 'mips_len'.int
getRef_res()
Get method for struct member 'ref_res'.int
getType()
Get method for struct member 'type'.int
getVersion()
Get method for struct member 'version'.int
getVis_res()
Get method for struct member 'vis_res'.void
set_pad(CArrayFacade<CArrayFacade<java.lang.Byte>> _pad)
Set method for struct member '_pad'.void
setCube_data(CPointer<LightProbeCache> cube_data)
Set method for struct member 'cube_data'.void
setCube_len(int cube_len)
Set method for struct member 'cube_len'.void
setCube_mips(CPointer<LightCacheTexture> cube_mips)
Set method for struct member 'cube_mips'.void
setCube_tx(LightCacheTexture cube_tx)
Set method for struct member 'cube_tx'.void
setFlag(int flag)
Set method for struct member 'flag'.void
setGrid_data(CPointer<LightGridCache> grid_data)
Set method for struct member 'grid_data'.void
setGrid_len(int grid_len)
Set method for struct member 'grid_len'.void
setGrid_tx(LightCacheTexture grid_tx)
Set method for struct member 'grid_tx'.void
setMips_len(int mips_len)
Set method for struct member 'mips_len'.void
setRef_res(int ref_res)
Set method for struct member 'ref_res'.void
setType(int type)
Set method for struct member 'type'.void
setVersion(int version)
Set method for struct member 'version'.void
setVis_res(int vis_res)
Set method for struct member 'vis_res'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct LightCache.It is required when allocating a new block to store data for LightCache.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__flag
public static final long[] __DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'flag'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__version
public static final long[] __DNA__FIELD__version
Field descriptor (offset) for struct member 'version'.Field Documentation
Blender Source Code
Version number to know if the cache data is compatible with this version of blender.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__version); CPointer<Integer> p_version = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'version'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__type
public static final long[] __DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.Field Documentation
Blender Source Code
Type of data this cache contains.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__type); CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'type'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__cube_len
public static final long[] __DNA__FIELD__cube_len
Field descriptor (offset) for struct member 'cube_len'.Field Documentation
Blender Source Code
only a single cache for now Number of probes to use for rendering.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_len); CPointer<Integer> p_cube_len = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'cube_len'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__grid_len
public static final long[] __DNA__FIELD__grid_len
Field descriptor (offset) for struct member 'grid_len'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_len); CPointer<Integer> p_grid_len = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'grid_len'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__mips_len
public static final long[] __DNA__FIELD__mips_len
Field descriptor (offset) for struct member 'mips_len'.Field Documentation
Blender Source Code
Number of mipmap level to use.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__mips_len); CPointer<Integer> p_mips_len = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'mips_len'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__vis_res
public static final long[] __DNA__FIELD__vis_res
Field descriptor (offset) for struct member 'vis_res'.Field Documentation
Blender Source Code
Size of a visibility/reflection sample.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__vis_res); CPointer<Integer> p_vis_res = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'vis_res'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__ref_res
public static final long[] __DNA__FIELD__ref_res
Field descriptor (offset) for struct member 'ref_res'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__ref_res); CPointer<Integer> p_ref_res = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'ref_res'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD___pad
public static final long[] __DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD___pad); CPointer<CArrayFacade<CArrayFacade<Byte>>> p__pad = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad'
- Signature: 'char[4][2]'
- Actual Size (32bit/64bit): 8/8
-
__DNA__FIELD__grid_tx
public static final long[] __DNA__FIELD__grid_tx
Field descriptor (offset) for struct member 'grid_tx'.Field Documentation
Blender Source Code
In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_tx); CPointer<LightCacheTexture> p_grid_tx = p.cast(new Class[]{LightCacheTexture.class});
Metadata
- Field: 'grid_tx'
- Signature: 'LightCacheTexture'
- Actual Size (32bit/64bit): 24/32
-
__DNA__FIELD__cube_tx
public static final long[] __DNA__FIELD__cube_tx
Field descriptor (offset) for struct member 'cube_tx'.Field Documentation
Blender Source Code
Contains data for mipmap level 0.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_tx); CPointer<LightCacheTexture> p_cube_tx = p.cast(new Class[]{LightCacheTexture.class});
Metadata
- Field: 'cube_tx'
- Signature: 'LightCacheTexture'
- Actual Size (32bit/64bit): 24/32
-
__DNA__FIELD__cube_mips
public static final long[] __DNA__FIELD__cube_mips
Field descriptor (offset) for struct member 'cube_mips'.Field Documentation
Blender Source Code
Does not contains valid GPUTexture, only data.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_mips); CPointer<CPointer<LightCacheTexture>> p_cube_mips = p.cast(new Class[]{CPointer.class, LightCacheTexture.class});
Metadata
- Field: 'cube_mips'
- Signature: 'LightCacheTexture*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__cube_data
public static final long[] __DNA__FIELD__cube_data
Field descriptor (offset) for struct member 'cube_data'.Field Documentation
Blender Source Code
All lightprobes data contained in the cache.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_data); CPointer<CPointer<LightProbeCache>> p_cube_data = p.cast(new Class[]{CPointer.class, LightProbeCache.class});
Metadata
- Field: 'cube_data'
- Signature: 'LightProbeCache*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__grid_data
public static final long[] __DNA__FIELD__grid_data
Field descriptor (offset) for struct member 'grid_data'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
LightCache lightcache = ...; CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_data); CPointer<CPointer<LightGridCache>> p_grid_data = p.cast(new Class[]{CPointer.class, LightGridCache.class});
Metadata
- Field: 'grid_data'
- Signature: 'LightGridCache*'
- Actual Size (32bit/64bit): 4/8
-
-
Constructor Detail
-
LightCache
public LightCache(long __address, Block __block, BlockTable __blockTable)
-
LightCache
protected LightCache(LightCache that)
-
-
Method Detail
-
getFlag
public int getFlag() throws java.io.IOException
Get method for struct member 'flag'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
setFlag
public void setFlag(int flag) throws java.io.IOException
Set method for struct member 'flag'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
getVersion
public int getVersion() throws java.io.IOException
Get method for struct member 'version'.Field Documentation
Blender Source Code
Version number to know if the cache data is compatible with this version of blender.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__version
-
setVersion
public void setVersion(int version) throws java.io.IOException
Set method for struct member 'version'.Field Documentation
Blender Source Code
Version number to know if the cache data is compatible with this version of blender.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__version
-
getType
public int getType() throws java.io.IOException
Get method for struct member 'type'.Field Documentation
Blender Source Code
Type of data this cache contains.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__type
-
setType
public void setType(int type) throws java.io.IOException
Set method for struct member 'type'.Field Documentation
Blender Source Code
Type of data this cache contains.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__type
-
getCube_len
public int getCube_len() throws java.io.IOException
Get method for struct member 'cube_len'.Field Documentation
Blender Source Code
only a single cache for now Number of probes to use for rendering.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_len
-
setCube_len
public void setCube_len(int cube_len) throws java.io.IOException
Set method for struct member 'cube_len'.Field Documentation
Blender Source Code
only a single cache for now Number of probes to use for rendering.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_len
-
getGrid_len
public int getGrid_len() throws java.io.IOException
Get method for struct member 'grid_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_len
-
setGrid_len
public void setGrid_len(int grid_len) throws java.io.IOException
Set method for struct member 'grid_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_len
-
getMips_len
public int getMips_len() throws java.io.IOException
Get method for struct member 'mips_len'.Field Documentation
Blender Source Code
Number of mipmap level to use.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__mips_len
-
setMips_len
public void setMips_len(int mips_len) throws java.io.IOException
Set method for struct member 'mips_len'.Field Documentation
Blender Source Code
Number of mipmap level to use.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__mips_len
-
getVis_res
public int getVis_res() throws java.io.IOException
Get method for struct member 'vis_res'.Field Documentation
Blender Source Code
Size of a visibility/reflection sample.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__vis_res
-
setVis_res
public void setVis_res(int vis_res) throws java.io.IOException
Set method for struct member 'vis_res'.Field Documentation
Blender Source Code
Size of a visibility/reflection sample.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__vis_res
-
getRef_res
public int getRef_res() throws java.io.IOException
Get method for struct member 'ref_res'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__ref_res
-
setRef_res
public void setRef_res(int ref_res) throws java.io.IOException
Set method for struct member 'ref_res'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__ref_res
-
get_pad
public CArrayFacade<CArrayFacade<java.lang.Byte>> get_pad() throws java.io.IOException
Get method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
set_pad
public void set_pad(CArrayFacade<CArrayFacade<java.lang.Byte>> _pad) throws java.io.IOException
Set method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
getGrid_tx
public LightCacheTexture getGrid_tx() throws java.io.IOException
Get method for struct member 'grid_tx'.Field Documentation
Blender Source Code
In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_tx
-
setGrid_tx
public void setGrid_tx(LightCacheTexture grid_tx) throws java.io.IOException
Set method for struct member 'grid_tx'.Field Documentation
Blender Source Code
In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_tx
-
getCube_tx
public LightCacheTexture getCube_tx() throws java.io.IOException
Get method for struct member 'cube_tx'.Field Documentation
Blender Source Code
Contains data for mipmap level 0.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_tx
-
setCube_tx
public void setCube_tx(LightCacheTexture cube_tx) throws java.io.IOException
Set method for struct member 'cube_tx'.Field Documentation
Blender Source Code
Contains data for mipmap level 0.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_tx
-
getCube_mips
public CPointer<LightCacheTexture> getCube_mips() throws java.io.IOException
Get method for struct member 'cube_mips'.Field Documentation
Blender Source Code
Does not contains valid GPUTexture, only data.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_mips
-
setCube_mips
public void setCube_mips(CPointer<LightCacheTexture> cube_mips) throws java.io.IOException
Set method for struct member 'cube_mips'.Field Documentation
Blender Source Code
Does not contains valid GPUTexture, only data.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_mips
-
getCube_data
public CPointer<LightProbeCache> getCube_data() throws java.io.IOException
Get method for struct member 'cube_data'.Field Documentation
Blender Source Code
All lightprobes data contained in the cache.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_data
-
setCube_data
public void setCube_data(CPointer<LightProbeCache> cube_data) throws java.io.IOException
Set method for struct member 'cube_data'.Field Documentation
Blender Source Code
All lightprobes data contained in the cache.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cube_data
-
getGrid_data
public CPointer<LightGridCache> getGrid_data() throws java.io.IOException
Get method for struct member 'grid_data'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_data
-
setGrid_data
public void setGrid_data(CPointer<LightGridCache> grid_data) throws java.io.IOException
Set method for struct member 'grid_data'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__grid_data
-
__io__addressof
public CPointer<LightCache> __io__addressof()
Instantiates a pointer on this instance.
-
-