texture_array.py :  » Game-2D-3D » PyOpenGL » PyOpenGL-3.0.1 » OpenGL » GL » EXT » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Game 2D 3D » PyOpenGL 
PyOpenGL » PyOpenGL 3.0.1 » OpenGL » GL » EXT » texture_array.py
'''OpenGL extension EXT.texture_array

This module customises the behaviour of the 
OpenGL.raw.GL.EXT.texture_array to provide a more 
Python-friendly API

Overview (from thespec import 
  
  This extension introduces the notion of one- and two-dimensional array
  textures.  An array texture is a collection of one- and two-dimensional
  images of identical size and format, arranged in layers.  A
  one-dimensional array texture is specified using TexImage2D; a
  two-dimensional array texture is specified using TexImage3D.  The height
  (1D array) or depth (2D array) specify the number of layers in the image.
  
  An array texture is accessed as a single unit in a programmable shader,
  using a single coordinate vector.  A single layer is selected, and that
  layer is then accessed as though it were a one- or two-dimensional
  texture.  The layer used is specified using the "t" or "r" texture
  coordinate for 1D and 2D array textures, respectively.  The layer
  coordinate is provided as an unnormalized floating-point value in the
  range [0,<n>-1], where <n> is the number of layers in the array texture.
  Texture lookups do not filter between layers, though such filtering can be
  achieved using programmable shaders.  When mipmapping is used, each level
  of an array texture has the same number of layers as the base level; the
  number of layers is not reduced as the image size decreases.
  
  Array textures can be rendered to by binding them to a framebuffer object
  (EXT_framebuffer_object).  A single layer of an array texture can be bound
  using normal framebuffer object mechanisms, or an entire array texture can
  be bound and rendered to using the layered rendering mechanisms provided
  by NV_geometry_program4.
  
  This extension does not provide for the use of array textures with
  fixed-function fragment processing.  Such support could be added by
  providing an additional extension allowing applications to pass the new
  target enumerants (TEXTURE_1D_ARRAY_EXT and TEXTURE_2D_ARRAY_EXT) to
  Enable and Disable.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/texture_array.txt
'''
from OpenGL import platform,constants,constant,arrays
from OpenGL import extensions,wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.EXT.texture_array import *
### END AUTOGENERATED SECTION
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.