< prev index next >

src/java.desktop/windows/native/libawt/java2d/d3d/D3DContext.h

Print this page




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef D3DCONTEXT_H
  27 #define D3DCONTEXT_H
  28 
  29 #include "java_awt_Transparency.h"
  30 #include "sun_java2d_pipe_BufferedContext.h"
  31 #include "sun_java2d_d3d_D3DContext_D3DContextCaps.h"
  32 #include "sun_java2d_d3d_D3DSurfaceData.h"
  33 #include "sun_java2d_pipe_hw_AccelDeviceEventNotifier.h"
  34 
  35 #include "ShaderList.h"
  36 #include "D3DPipeline.h"
  37 #include "D3DMaskCache.h"
  38 #include "D3DVertexCacher.h"
  39 #include "D3DResourceManager.h"
  40 
  41 #include "j2d_md.h"
  42 
  43 typedef enum {
  44     TILEFMT_UNKNOWN,
  45     TILEFMT_1BYTE_ALPHA,
  46     TILEFMT_3BYTE_RGB,
  47     TILEFMT_3BYTE_BGR,
  48     TILEFMT_4BYTE_ARGB_PRE,
  49 } TileFormat;
  50 
  51 typedef enum {
  52     CLIP_NONE,
  53     CLIP_RECT,


 395 #define CAPS_RT_TEXTURE_OPAQUE     \
 396     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_RT_TEXTURE_OPAQUE
 397 #define CAPS_MULTITEXTURE   \
 398     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_MULTITEXTURE
 399 #define CAPS_TEXNONPOW2     \
 400     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_TEXNONPOW2
 401 #define CAPS_TEXNONSQUARE   \
 402     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_TEXNONSQUARE
 403 #define CAPS_LCD_SHADER     \
 404     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_LCD_SHADER
 405 #define CAPS_BIOP_SHADER    \
 406     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_BIOP_SHADER
 407 #define CAPS_AA_SHADER    \
 408     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_AA_SHADER
 409 #define CAPS_DEVICE_OK      \
 410     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_DEVICE_OK
 411 #define CAPS_PS20           \
 412     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_PS20
 413 #define CAPS_PS30           \
 414     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_PS30
 415 
 416 #define DEVICE_RESET    \
 417     sun_java2d_pipe_hw_AccelDeviceEventNotifier_DEVICE_RESET
 418 #define DEVICE_DISPOSED \
 419     sun_java2d_pipe_hw_AccelDeviceEventNotifier_DEVICE_DISPOSED
 420 
 421 #endif // D3DCONTEXT_H


  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef D3DCONTEXT_H
  27 #define D3DCONTEXT_H
  28 
  29 #include "java_awt_Transparency.h"
  30 #include "sun_java2d_pipe_BufferedContext.h"
  31 #include "sun_java2d_d3d_D3DContext_D3DContextCaps.h"
  32 #include "sun_java2d_d3d_D3DSurfaceData.h"

  33 
  34 #include "ShaderList.h"
  35 #include "D3DPipeline.h"
  36 #include "D3DMaskCache.h"
  37 #include "D3DVertexCacher.h"
  38 #include "D3DResourceManager.h"
  39 
  40 #include "j2d_md.h"
  41 
  42 typedef enum {
  43     TILEFMT_UNKNOWN,
  44     TILEFMT_1BYTE_ALPHA,
  45     TILEFMT_3BYTE_RGB,
  46     TILEFMT_3BYTE_BGR,
  47     TILEFMT_4BYTE_ARGB_PRE,
  48 } TileFormat;
  49 
  50 typedef enum {
  51     CLIP_NONE,
  52     CLIP_RECT,


 394 #define CAPS_RT_TEXTURE_OPAQUE     \
 395     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_RT_TEXTURE_OPAQUE
 396 #define CAPS_MULTITEXTURE   \
 397     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_MULTITEXTURE
 398 #define CAPS_TEXNONPOW2     \
 399     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_TEXNONPOW2
 400 #define CAPS_TEXNONSQUARE   \
 401     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_TEXNONSQUARE
 402 #define CAPS_LCD_SHADER     \
 403     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_LCD_SHADER
 404 #define CAPS_BIOP_SHADER    \
 405     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_BIOP_SHADER
 406 #define CAPS_AA_SHADER    \
 407     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_AA_SHADER
 408 #define CAPS_DEVICE_OK      \
 409     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_DEVICE_OK
 410 #define CAPS_PS20           \
 411     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_PS20
 412 #define CAPS_PS30           \
 413     sun_java2d_d3d_D3DContext_D3DContextCaps_CAPS_PS30





 414 
 415 #endif // D3DCONTEXT_H
< prev index next >