Rename example/Utils to example/SampleUtils

This commit is contained in:
Corentin Wallez 2017-06-19 13:15:13 -04:00 committed by Corentin Wallez
parent 5ee7afdfbe
commit 9347e8fcd1
15 changed files with 28 additions and 28 deletions

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -154,7 +154,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -95,7 +95,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -13,8 +13,8 @@
# limitations under the License.
add_library(sample_utils
Utils.cpp
Utils.h
SampleUtils.cpp
SampleUtils.h
)
target_link_libraries(sample_utils utils nxt_wire)
SetCXX14(sample_utils)

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -301,7 +301,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -145,7 +145,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -296,7 +296,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -95,7 +95,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -101,7 +101,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -157,7 +157,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -106,7 +106,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -88,7 +88,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -206,7 +206,7 @@ void frame() {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
init();

View File

@ -110,7 +110,7 @@ nxt::Device CreateCppNXTDevice() {
return nxt::Device::Acquire(cDevice);
}
bool InitUtils(int argc, const char** argv) {
bool InitSample(int argc, const char** argv) {
for (int i = 0; i < argc; i++) {
if (std::string("-b") == argv[i] || std::string("--backend") == argv[i]) {
i++;

View File

@ -14,7 +14,7 @@
#include <nxt/nxtcpp.h>
bool InitUtils(int argc, const char** argv);
bool InitSample(int argc, const char** argv);
void DoSwapBuffers();
bool ShouldQuit();
void USleep(uint64_t usecs);

View File

@ -18,7 +18,7 @@
#define __STDC_FORMAT_MACROS
#endif
#include "Utils.h"
#include "SampleUtils.h"
#include "utils/NXTHelpers.h"
@ -613,7 +613,7 @@ namespace {
}
int main(int argc, const char* argv[]) {
if (!InitUtils(argc, argv)) {
if (!InitSample(argc, argv)) {
return 1;
}
if (argc < 2) {