#include "draw/draw_pipe.h"
+#if FEATURE_feedback
+
/**
* This is actually used for both feedback and selection.
*/
{
functions->RenderMode = st_RenderMode;
}
+
+#endif /* FEATURE_feedback */
#define ST_CB_FEEDBACK_H
+#include "main/mtypes.h"
+
+#if FEATURE_feedback
+
extern void
st_init_feedback_functions(struct dd_function_table *functions);
+#else
+
+static INLINE void
+st_init_feedback_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_feedback */
#endif /* ST_CB_FEEDBACK_H */
#include "vbo/vbo.h"
+#if FEATURE_rastpos
/**
* Our special drawing pipeline stage (replaces rasterization).
{
functions->RasterPos = st_RasterPos;
}
+
+#endif /* FEATURE_rastpos */
#ifndef ST_CB_RASTERPOS_H
#define ST_CB_RASTERPOS_H
+
+#include "main/mtypes.h"
+
+#if FEATURE_rastpos
+
extern void st_init_rasterpos_functions(struct dd_function_table *functions);
-#endif
+#else
+
+static INLINE void
+st_init_rasterpos_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_rastpos */
+
+#endif /* ST_CB_RASTERPOS_H */
#endif
#include "st_cb_eglimage.h"
#include "st_cb_fbo.h"
-#if FEATURE_feedback
#include "st_cb_feedback.h"
-#endif
#include "st_cb_program.h"
#include "st_cb_queryobj.h"
#include "st_cb_readpixels.h"
#include "util/u_inlines.h"
#include "util/u_rect.h"
#include "util/u_surface.h"
-#include "draw/draw_context.h"
#include "cso_cache/cso_context.h"
/* state tracker needs the VBO module */
_vbo_CreateContext(ctx);
-#if FEATURE_feedback || FEATURE_rastpos
- st->draw = draw_create(pipe); /* for selection/feedback */
-
- /* Disable draw options that might convert points/lines to tris, etc.
- * as that would foul-up feedback/selection mode.
- */
- draw_wide_line_threshold(st->draw, 1000.0f);
- draw_wide_point_threshold(st->draw, 1000.0f);
- draw_enable_line_stipple(st->draw, FALSE);
- draw_enable_point_sprites(st->draw, FALSE);
-#endif
-
st->dirty.mesa = ~0;
st->dirty.st = ~0;
{
uint i;
-#if FEATURE_feedback || FEATURE_rastpos
- draw_destroy(st->draw);
-#endif
st_destroy_atoms( st );
st_destroy_draw( st );
st_destroy_generate_mipmap(st);
st_init_eglimage_functions(functions);
st_init_fbo_functions(functions);
-#if FEATURE_feedback
st_init_feedback_functions(functions);
-#endif
st_init_program_functions(functions);
#if FEATURE_queryobj
st_init_query_functions(functions);
#include "pipe/p_defines.h"
#include "util/u_inlines.h"
#include "util/u_format.h"
+#include "draw/draw_context.h"
#include "cso_cache/cso_context.h"
GLcontext *ctx = st->ctx;
vbo_set_draw_func(ctx, st_draw_vbo);
+
+#if FEATURE_feedback || FEATURE_rastpos
+ st->draw = draw_create(st->pipe); /* for selection/feedback */
+
+ /* Disable draw options that might convert points/lines to tris, etc.
+ * as that would foul-up feedback/selection mode.
+ */
+ draw_wide_line_threshold(st->draw, 1000.0f);
+ draw_wide_point_threshold(st->draw, 1000.0f);
+ draw_enable_line_stipple(st->draw, FALSE);
+ draw_enable_point_sprites(st->draw, FALSE);
+#endif
}
void st_destroy_draw( struct st_context *st )
{
+#if FEATURE_feedback || FEATURE_rastpos
+ draw_destroy(st->draw);
+#endif
}