Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Feb 2, 2017
0 parents commit bd3709a
Show file tree
Hide file tree
Showing 13 changed files with 1,048 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
TabWidth: 4
ContinuationIndentWidth: 2
UseTab: ForIndentation
ColumnLimit: 100

AccessModifierOffset: -4
NamespaceIndentation: All
IndentCaseLabels: true

SpaceBeforeParens: ControlStatements
PointerAlignment: Right

AllowShortFunctionsOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# http://EditorConfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.{hpp,cpp,h,c}]
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Derived files
/build

# Editor
*~
*.swp

29 changes: 29 additions & 0 deletions Plugin/Context.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
Copyright (c) 2017 yvt
This file is part of OSVoxlap.
OSVoxlap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OSVoxlap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OSVoxlap. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Context.h"
namespace osvlp {
Context::Context() {}
Context::~Context() {}

void Context::Initialize(const OSSWRendererPluginParam &) {
// TODO
}

const char *Context::GetLastError() { return m_lastError.c_str(); }
}
38 changes: 38 additions & 0 deletions Plugin/Context.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
Copyright (c) 2017 yvt
This file is part of OSVoxlap.
OSVoxlap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OSVoxlap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OSVoxlap. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include <string>

#include "OSSWRendererPlugin.h"

namespace osvlp {
class Context {
public:
Context();
~Context();

void Initialize(const OSSWRendererPluginParam &);

const char *GetLastError();

private:
std::string m_lastError;
};
}
Loading

0 comments on commit bd3709a

Please sign in to comment.