Compare commits
No commits in common. "3f837d7052214a4fbba3ec5a45c95e7236dc4d9e" and "b0aca69287a607610bcdf137d5598e9045c156f7" have entirely different histories.
3f837d7052
...
b0aca69287
17
.clwb/.bazelproject
Normal file
17
.clwb/.bazelproject
Normal file
@ -0,0 +1,17 @@
|
||||
directories:
|
||||
# Add the directories you want added as source here
|
||||
# By default, we've added your entire workspace ('.')
|
||||
.
|
||||
|
||||
# Automatically includes all relevant targets under the 'directories' above
|
||||
derive_targets_from_directories: true
|
||||
|
||||
targets:
|
||||
# If source code isn't resolving, add additional targets that compile it here
|
||||
|
||||
additional_languages:
|
||||
# Uncomment any additional languages you want supported
|
||||
# dart
|
||||
# javascript
|
||||
# python
|
||||
# typescript
|
11
.clwb/.blaze/modules/.project-data-dir.iml
Normal file
11
.clwb/.blaze/modules/.project-data-dir.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.system.id="Blaze" type="BLAZE_CPP_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../..">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.." />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../.idea" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
16
.clwb/.blaze/modules/.workspace.iml
Normal file
16
.clwb/.blaze/modules/.workspace.iml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.system.id="Blaze" type="BLAZE_CPP_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../../..">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../.." isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../.." />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-CrocParty" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-bin" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-genfiles" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-out" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-testlogs" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.clwb/.idea/.gitignore
vendored
Normal file
8
.clwb/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
1
.clwb/.idea/.name
Normal file
1
.clwb/.idea/.name
Normal file
@ -0,0 +1 @@
|
||||
CrocParty
|
9
.clwb/.idea/modules.xml
Normal file
9
.clwb/.idea/modules.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.blaze/modules/.project-data-dir.iml" filepath="$PROJECT_DIR$/.blaze/modules/.project-data-dir.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.blaze/modules/.workspace.iml" filepath="$PROJECT_DIR$/.blaze/modules/.workspace.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
20
.clwb/.idea/runConfigurations.xml
Normal file
20
.clwb/.idea/runConfigurations.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="com.jetbrains.cidr.cpp.execution.CMakeTargetRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.debugger.CMakeRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.boost.CMakeBoostTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.google.CMakeGoogleTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.tcatch.CMakeCatchTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.runfile.CppFileTargetRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.run.PythonRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.PyTestsConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.PythonTestLegacyConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.doctest.PythonDocTestConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.tox.PyToxConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
6
.clwb/.idea/vcs.xml
Normal file
6
.clwb/.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -1,5 +0,0 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"stdbool.h": "c"
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"lockFileVersion": 3,
|
||||
"moduleFileHash": "26410c1d586b610379d5f0071d4dd5919188e0ec421ce4608d07c972ac622678",
|
||||
"moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d",
|
||||
"flags": {
|
||||
"cmdRegistries": [
|
||||
"https://bcr.bazel.build/"
|
||||
|
@ -1,6 +0,0 @@
|
||||
cc_library(
|
||||
name = "game",
|
||||
srcs = glob(["*.c"]),
|
||||
hdrs = glob(["*.h"]),
|
||||
visibility = ["//sdl_host:__pkg__"]
|
||||
)
|
8
main/BUILD
Normal file
8
main/BUILD
Normal file
@ -0,0 +1,8 @@
|
||||
cc_binary(
|
||||
name = "game",
|
||||
srcs = glob([
|
||||
"*.c",
|
||||
"*.h",
|
||||
]),
|
||||
deps = ["//sdl"],
|
||||
)
|
9
main/main.c
Normal file
9
main/main.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include "sdl_host.h"
|
||||
|
||||
int main() {
|
||||
// PYREX NOTE: You could, if you wanted, define another host with the same interface as sdl_host
|
||||
// That would be pretty cool, right?
|
||||
//
|
||||
// (Such a host might be smaller and more platform-specific.)
|
||||
return sdl_host_main();
|
||||
}
|
@ -1,11 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// don't use sdl's redefinition of main
|
||||
#define SDL_MAIN_HANDLED
|
||||
#include "sdl_host.h"
|
||||
#include "sdl/include/SDL.h"
|
||||
#include "game/game.h"
|
||||
#include "game/device.h"
|
||||
#include "game.h"
|
||||
#include "device.h"
|
||||
|
||||
void sdl_host_suggest_dimensions(uint32_t* window_w, uint32_t* window_h);
|
||||
void sdl_host_loop();
|
||||
@ -14,7 +13,7 @@ SDL_Window* sdl_host_window;
|
||||
SDL_Renderer* sdl_host_renderer;
|
||||
SDL_Texture* sdl_host_target;
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int sdl_host_main(void) {
|
||||
int result = 0;
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) {
|
||||
printf("could not initialize SDL! sdl error: %s\n", SDL_GetError());
|
6
main/sdl_host.h
Normal file
6
main/sdl_host.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef CROCPARTY_SDL_HOST_H
|
||||
#define CROCPARTY_SDL_HOST_H
|
||||
|
||||
int sdl_host_main(void);
|
||||
|
||||
#endif //CROCPARTY_SDL_HOST_H
|
11
sdl/BUILD
11
sdl/BUILD
@ -1,7 +1,10 @@
|
||||
cc_import(
|
||||
cc_library(
|
||||
name = "sdl",
|
||||
srcs = [
|
||||
"x64_windows/SDL2.dll",
|
||||
"x64_windows/SDL2.lib",
|
||||
"x64_windows/SDL2main.lib",
|
||||
],
|
||||
hdrs = glob(["include/*.h"]),
|
||||
interface_library = "x64_windows/SDL2.lib",
|
||||
shared_library = "x64_windows/SDL2.dll",
|
||||
visibility = ["//sdl_host:__pkg__"],
|
||||
visibility = ["//main:__pkg__"],
|
||||
)
|
||||
|
@ -1,5 +0,0 @@
|
||||
cc_binary(
|
||||
name = "sdl_host",
|
||||
srcs = glob(["*.c", "*.h"]),
|
||||
deps = ["//game:game", "//sdl:sdl"],
|
||||
)
|
Loading…
Reference in New Issue
Block a user