static void draw( void )
{
- union pipe_color_union clear_color = { .f = {1, 0, 1, 1} };
+ union pipe_color_union clear_color = { {1, 0, 1, 1} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
ctx->flush(ctx, NULL);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+ union pipe_color_union clear_color = { {.1,.3,.5,0} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+ union pipe_color_union clear_color = { {.1,.3,.5,0} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
if (draw_strip)
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {.5,.5,.5,1} };
+ union pipe_color_union clear_color = { {.5,.5,.5,1} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {.5,.5,.5,1} };
+ union pipe_color_union clear_color = { {.5,.5,.5,1} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {0,0,0,1} };
+ union pipe_color_union clear_color = { {0,0,0,1} };
int i;
printf("Creating %d shaders\n", num_iters);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {1,0,1,1} };
+ union pipe_color_union clear_color = { {1,0,1,1} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {1,0,1,1} };
+ union pipe_color_union clear_color = { {1,0,1,1} };
struct pipe_draw_info info;
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {1,0,1,1} };
+ union pipe_color_union clear_color = { {1,0,1,1} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
static void draw( void )
{
- union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+ union pipe_color_union clear_color = { {.1,.3,.5,0} };
ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, Elements(vertices));