コード例 #1
0
 public ImageAtlasPage(String textureName, String groupName, int width, int height)
 {
     rootNode         = new ImagePackTreeNode(new Size(width, height));
     texture          = TextureManager.getInstance().createManual(textureName, groupName, TextureType.TEX_TYPE_2D, (uint)width, (uint)height, 1, 0, OgrePlugin.PixelFormat.PF_A8R8G8B8, TextureUsage.TU_STATIC_WRITE_ONLY, null, false, 0);
     bufferPtr        = texture.Value.getBuffer();
     this.TextureName = textureName;
     this.GroupName   = groupName;
 }
コード例 #2
0
 public void blit(HardwarePixelBufferSharedPtr hardwarePixelBuffer, IntRect src, IntRect dest)
 {
     HardwarePixelBuffer_blit(hardwareBuffer, hardwarePixelBuffer.HeapSharedPtr, src.Left, src.Top, src.Right, src.Bottom, dest.Left, dest.Top, dest.Right, dest.Bottom);
 }