Home | History | Annotate | Download | only in state_tracker
      1 /**************************************************************************
      2  *
      3  * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
      4  * All Rights Reserved.
      5  *
      6  **************************************************************************/
      7 
      8 
      9 #ifndef ST_CB_DRAWTEX_H
     10 #define ST_CB_DRAWTEX_H
     11 
     12 
     13 #include "main/compiler.h"
     14 #include "main/mfeatures.h"
     15 
     16 struct dd_function_table;
     17 struct st_context;
     18 
     19 #if FEATURE_OES_draw_texture
     20 
     21 extern void
     22 st_init_drawtex_functions(struct dd_function_table *functions);
     23 
     24 extern void
     25 st_destroy_drawtex(struct st_context *st);
     26 
     27 #else
     28 
     29 static INLINE void
     30 st_init_drawtex_functions(struct dd_function_table *functions)
     31 {
     32 }
     33 
     34 static INLINE void
     35 st_destroy_drawtex(struct st_context *st)
     36 {
     37 }
     38 
     39 #endif /* FEATURE_OES_draw_texture */
     40 
     41 #endif /* ST_CB_DRAWTEX_H */
     42