diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-17 09:40:14 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-17 09:40:28 +0800 |
commit | 21e0c5fc4216e4e690cbdf94ed4d09b2798efd71 (patch) | |
tree | 457a01ac2ef631499ea1b713e838e0e449276a75 | |
parent | c3b4e6f8c1969418dfefd66ed5641ab6701e5397 (diff) |
Update the coding style.
Replace tabs by spaces and others.
-rw-r--r-- | st_api.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -64,8 +64,7 @@ struct st_visual /** * Used in st_context->teximage. */ -enum st_texture_type -{ +enum st_texture_type { ST_TEXTURE_2D, ST_TEXTURE_3D, ST_TEXTURE_RECT, @@ -157,7 +156,8 @@ struct st_framebuffer * * The input and output depend on the resource type. */ -struct st_manager_resource { +struct st_manager_resource +{ enum st_manager_resource_type type; const union { @@ -183,9 +183,9 @@ struct st_manager_api * manager resource. */ boolean (*lock_resource)(const struct st_manager_api *smapi, - struct st_manager_resource *smres); + struct st_manager_resource *smres); void (*unlock_resource)(const struct st_manager_api *smapi, - const struct st_manager_resource *smres); + const struct st_manager_resource *smres); }; /** @@ -193,7 +193,8 @@ struct st_manager_api * * The input and output depend on the resource type. */ -struct st_context_resource { +struct st_context_resource +{ enum st_context_resource_type type; const union { @@ -221,9 +222,9 @@ struct st_context * context resource. */ boolean (*lock_resource)(const struct st_manager_api *api, - struct st_manager_resource *res); + struct st_manager_resource *res); void (*unlock_resource)(const struct st_manager_api *api, - const struct st_manager_resource *res); + const struct st_manager_resource *res); /** * Invalidate the current textures that was taken from a framebuffer. @@ -250,8 +251,8 @@ struct st_context * This function is optional. */ boolean (*teximage)(struct st_context *ctx, enum st_texture_type target, - int level, enum pipe_format internal_format, - struct pipe_texture *tex, boolean mipmap); + int level, enum pipe_format internal_format, + struct pipe_texture *tex, boolean mipmap); /** * Flush all drawing from context to the pipe also flushes the pipe. |