-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
49 lines (41 loc) · 1.2 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* @LastEditors: platelets [email protected]
* @Date: 2022-11-20 01:06:53
* @LastEditTime: 2022-11-20 16:05:09
* Copyright (c) 2022 by platelets email: [email protected], All Rights Reserved.
*/
#include <BASConfig.h>
#include <GLFW/glfw3.h>
#include <adder.h>
#include <cstdio>
#include <iostream>
#include "Poco/DigestStream.h"
#include "Poco/MD5Engine.h"
int main([[maybe_unused]] int argc, char* argv[]) {
std::cout << "Hello cmake" << std::endl;
std::cout << add(123.4, 245.2) << "\n";
int number = 1;
Poco::MD5Engine md5;
Poco::DigestOutputStream ds(md5);
ds << "abcdefghijklmnopqrstuvwxyz";
ds.close();
std::cout << Poco::DigestEngine::digestToHex(md5.digest()) << std::endl;
// fmt::print(stdout, "Your code is {} \n", number);
std::cout << argv[0] << " Version " << BAS_VERSION_MAJOR << "."
<< BAS_VERSION_MINOR << '\n';
GLFWwindow* window;
if (!glfwInit()) {
fprintf(stderr, "Failed to initialize GLFW\n");
exit(EXIT_FAILURE);
}
window = glfwCreateWindow(300, 300, "Gears", nullptr, nullptr);
// Main loop
while (!glfwWindowShouldClose(window)) {
// Swap buffers
glfwSwapBuffers(window);
glfwPollEvents();
}
// Terminate GLFW
glfwTerminate();
return 0;
}