summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-01-17 09:40:14 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-01-17 09:40:28 +0800
commit21e0c5fc4216e4e690cbdf94ed4d09b2798efd71 (patch)
tree457a01ac2ef631499ea1b713e838e0e449276a75
parentc3b4e6f8c1969418dfefd66ed5641ab6701e5397 (diff)
Update the coding style.
Replace tabs by spaces and others.
-rw-r--r--st_api.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/st_api.h b/st_api.h
index 3a37c7d..1c1fc11 100644
--- a/st_api.h
+++ b/st_api.h
@@ -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.