Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TextureCube.OpenGL.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGL
4 using System;
5 using System.IO;
6 using System.Runtime.InteropServices;
7 using OpenTK.Graphics;
8 
9 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGLES
10 using OpenTK.Graphics.ES30;
11 using PixelFormatGl = OpenTK.Graphics.ES30.PixelFormat;
12 #else
13 using OpenTK.Graphics.OpenGL;
14 using PixelFormatGl = OpenTK.Graphics.OpenGL.PixelFormat;
15 #endif
16 
17 namespace SiliconStudio.Paradox.Graphics
18 {
19  /// <summary>
20  /// Represents a 2D grid of texels.
21  /// </summary>
22  public partial class TextureCube
23  {
24  protected internal TextureCube(GraphicsDevice device, TextureDescription description2D, DataBox[] dataBoxes = null) : base(device, description2D, TextureTarget.TextureCubeMap)
25  {
26  throw new NotImplementedException();
27  }
28 
29  protected internal TextureCube(GraphicsDevice device, TextureCube texture) : base(device, texture)
30  {
31  throw new NotImplementedException();
32  }
33 
34  public override Texture ToTexture(ViewType viewType, int arraySlice, int mipMapSlice)
35  {
36  // Exists since OpenGL 4.3
37  if (viewType != ViewType.Full || arraySlice != 0 || mipMapSlice != 0)
38  throw new NotImplementedException();
39 
40  return new TextureCube(GraphicsDevice, this);
41  }
42  }
43 }
44 
45 #endif
ViewType
Defines how a view is selected from a resource.
Definition: ViewType.cs:31
Same as Deferred mode, except sprites are sorted by texture prior to drawing. This can improve perfor...
PixelFormat
Defines various types of pixel formats.
Definition: PixelFormat.cs:32
The texture dimension is a CubeMap.