All magic tools: Add "complexity_level" arg to init()
This commit is contained in:
parent
0bc54921d9
commit
2055b071f1
61 changed files with 185 additions and 189 deletions
|
|
@ -23,7 +23,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: April 19, 2023
|
||||
Last updated: December 29, 2023
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -42,7 +42,7 @@ static int ripples_z, ripples_brite;
|
|||
static float ripples_radius = 100;
|
||||
|
||||
Uint32 ripples_api_version(void);
|
||||
int ripples_init(magic_api * api, Uint32 disabled_features);
|
||||
int ripples_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
|
||||
int ripples_get_tool_count(magic_api * api);
|
||||
SDL_Surface *ripples_get_icon(magic_api * api, int which);
|
||||
char *ripples_get_name(magic_api * api, int which);
|
||||
|
|
@ -76,8 +76,7 @@ Uint32 ripples_api_version(void)
|
|||
#define deg_cos(x) cos((x) * M_PI / 180.0)
|
||||
#define deg_sin(x) sin((x) * M_PI / 180.0)
|
||||
|
||||
// No setup required:
|
||||
int ripples_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
|
||||
int ripples_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
|
||||
{
|
||||
char fname[1024];
|
||||
|
||||
|
|
@ -87,7 +86,6 @@ int ripples_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
|
|||
return (1);
|
||||
}
|
||||
|
||||
// We have multiple tools:
|
||||
int ripples_get_tool_count(magic_api * api ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue