Skip to content

Commit

Permalink
R20 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRosenstein committed Sep 9, 2018
1 parent fc5fb8f commit 2868106
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 53 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
build/
generated/
project/*
!project/projectdefinition.txt
*.cdl64
*.exp
*.lib
*.dylib
*.xlib
*.profraw
.DS_Store
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "craftr/modules/maxon.c4d"]
path = craftr/modules/maxon.c4d
url = https://github.com/craftr-build/NiklasRosenstein.maxon.c4d.git
[submodule "_vendor/aaocean"]
path = _vendor/aaocean
url = [email protected]:NiklasRosenstein/mirror-aaOcean.git
[submodule "craftr/net.maxon.c4d"]
path = craftr/net.maxon.c4d
url = [email protected]:craftr-build/net.maxon.c4d.git
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ aaOcean Shader and Deformer by [Amaan Akram][0], ported to Cinema 4D by
[0]: http://www.amaanakram.com/
[1]: http://www.psd.de/
[2]: http://niklasrosenstein.com/

## Changelog

### v1.0.1

- R20 Update
33 changes: 33 additions & 0 deletions build.craftr
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * from 'craftr'
project('com.niklasrosenstein.c4d-aaOcean', '1.0')
link_module('./craftr/net.maxon.c4d')
import c4d from 'net.maxon.c4d'

includes = [
'res',
'_vendor/aaocean/externals/aaOcean/src',
'_vendor/aaocean/externals/helpers'
]

target('aaOcean')
depends(['net.maxon.c4d:addons'])
properties({
'cxx.srcs': ['source/aaOceanC4D.cpp'],
'cxx.type': 'library',
'cxx.includes': includes,
'cxx.enableOpenmp': True,
'c4d.SourceProcessor': False
})
c4d.build()

target('plugin')
depends(['net.maxon.c4d:addons'])
depends([':aaOcean'])
properties({
'cxx.srcs': ['source/main.cpp', 'source/aaOceanDeformer.cpp', 'source/aaOCeanShader.cpp'],
'cxx.includes': includes,
'cxx.enableOpenmp': True,
'cxx.productDirectory': '.',
'cxx.productName': 'c4d-aaOcean' + c4d.plugin_suffix
})
c4d.build()
34 changes: 0 additions & 34 deletions craftr/Craftrfile

This file was deleted.

9 changes: 0 additions & 9 deletions craftr/manifest.cson

This file was deleted.

1 change: 0 additions & 1 deletion craftr/modules/maxon.c4d
Submodule maxon.c4d deleted from 1a0649
1 change: 1 addition & 0 deletions craftr/net.maxon.c4d
Submodule net.maxon.c4d added at 7be316
5 changes: 5 additions & 0 deletions project/projectdefinition.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ModuleId=com.niklasrosenstein.c4d-aaOcean
Platform=Win64;OSX
Type=DLL
stylecheck=false
APIS=cinema.framework
4 changes: 2 additions & 2 deletions src/aaOceanC4D.cpp → source/aaOceanC4D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "aaOceanC4D.h"
#include <aaOceanClass.cpp>
#include <c4d_apibridge.h>

aaOceanC4D::aaOceanC4D()
{
Expand Down Expand Up @@ -74,7 +75,6 @@ Bool aaOceanC4D::IsChoppy() {
return _oc->isChoppy();
}


Bool RegisterAaOceanDescription() {
return RegisterDescription(DaaOceanC4D, "aaOceanC4D");
return RegisterDescription(DaaOceanC4D, "aaOceanC4D"_s);
}
File renamed without changes.
File renamed without changes.
11 changes: 9 additions & 2 deletions src/aaOceanDeformer.cpp → source/aaOceanDeformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <c4d.h>
#include <c4d_apibridge.h>
#include <description/OaaOceanDeformer.h>
#include "aaOceanC4D.h"
#include "utils.h"
Expand Down Expand Up @@ -114,6 +115,12 @@ class aaOceanDeformer : public ObjectData

Bool RegisterAaOceanDeformer()
{
return RegisterObjectPlugin(OaaOceanDeformer, "aaOceanDeformer", OBJECT_MODIFIER,
aaOceanDeformer::Alloc, "OaaOceanDeformer", AutoBitmap("aaoceandeformer.png"), 0);
return RegisterObjectPlugin(
OaaOceanDeformer,
"aaOceanDeformer"_s,
OBJECT_MODIFIER,
aaOceanDeformer::Alloc,
"OaaOceanDeformer"_s,
AutoBitmap("aaoceandeformer.png"_s),
0);
}
9 changes: 8 additions & 1 deletion src/aaOceanShader.cpp → source/aaOceanShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <c4d.h>
#include <c4d_apibridge.h>
#include <description/XaaOceanShader.h>
#include "aaOceanC4D.h"
#include "utils.h"
Expand Down Expand Up @@ -82,5 +83,11 @@ class aaOceanShader : public ShaderData

Bool RegisterAaOceanShader() {
Int32 const info = 0;
return RegisterShaderPlugin(XaaOceanShader, "aaOceanShader", info, aaOceanShader::Alloc, "XaaOceanShader", 0);
return RegisterShaderPlugin(
XaaOceanShader,
"aaOceanShader"_s,
info,
aaOceanShader::Alloc,
"XaaOceanShader"_s,
0);
}
3 changes: 2 additions & 1 deletion src/main.cpp → source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <c4d.h>
#include <c4d_apibridge.h>
#include "aaOceanC4D.h"

extern Bool RegisterAaOceanDeformer();
Expand All @@ -33,7 +34,7 @@ Bool PluginStart() {
Bool PluginMessage(Int32 msg, void* pdata) {
switch (msg) {
case C4DPL_INIT_SYS:
return ::resource.Init();
return c4d_apibridge::GlobalResource().Init();
}
return true;
}
Expand Down
File renamed without changes.

0 comments on commit 2868106

Please sign in to comment.