equal
deleted
inserted
replaced
1 /* Copyright (c) 2009 The Khronos Group Inc. |
1 /* Copyright (c) 2009-2010 The Khronos Group Inc. |
2 * |
2 * |
3 * Permission is hereby granted, free of charge, to any person obtaining a |
3 * Permission is hereby granted, free of charge, to any person obtaining a |
4 * copy of this software and/or associated documentation files (the |
4 * copy of this software and/or associated documentation files (the |
5 * "Materials"), to deal in the Materials without restriction, including |
5 * "Materials"), to deal in the Materials without restriction, including |
6 * without limitation the rights to use, copy, modify, merge, publish, |
6 * without limitation the rights to use, copy, modify, merge, publish, |
127 /*----------------------------------------------------------------------------*/ |
127 /*----------------------------------------------------------------------------*/ |
128 OWF_API_CALL WFC_SCENE* |
128 OWF_API_CALL WFC_SCENE* |
129 WFC_Scene_Create(WFC_CONTEXT* context) |
129 WFC_Scene_Create(WFC_CONTEXT* context) |
130 { |
130 { |
131 WFC_SCENE* scene; |
131 WFC_SCENE* scene; |
132 |
132 |
133 DPRINT(("WFC_Scene_Create")); |
133 DPRINT(("WFC_Scene_Create")); |
|
134 |
|
135 OWF_ASSERT(context); |
|
136 |
134 scene = SCENE(OWF_Pool_GetObject(context->scenePool)); |
137 scene = SCENE(OWF_Pool_GetObject(context->scenePool)); |
135 |
138 |
136 OWF_ASSERT(scene); |
139 OWF_ASSERT(scene); |
137 |
140 |
138 ADDREF(scene->context, context); |
141 ADDREF(scene->context, context); |