repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
codeonwort/pathosengine
projects/PathosEngine/src/pathos/loader/scene_desc_parser.h
// Separated from scene_loader due to some nasty include errors for rapidjson. // ex) rapidjson\document.h(958,76): warning C4003: not enough arguments for function-like macro invocation 'max' #pragma once // #todo: Due to ECubemapImagePreference, but this includes FreeImage #include "imageloader.h" #include "badger...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/console.h
#pragma once #include "render/render_command_list.h" #include <stdint.h> #include <memory> #include <string> #include <list> #include <vector> #include <mutex> namespace pathos { class ConsoleWindow { public: ConsoleWindow(); ConsoleWindow(const ConsoleWindow&) = delete; ConsoleWindow& operator=(const Cons...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/sky_atmosphere.h
// Simulates the Earth's atmosphere scattering #pragma once #include "sky.h" #include "gl_core.h" #include "pathos/shader/uniform_buffer.h" namespace pathos { class AtmosphereScattering : public SkyActor { public: virtual void render(RenderCommandList& cmdList, const Scene* scene, const Camera* camera) overr...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/input/input_system.h
#pragma once #include "badger/types/int_types.h" #include "input_constants.h" #include <list> #include <memory> namespace pathos { class InputManager; class XInputManager; // InputSystem is a bridge between Engine and InputManager. // It just delegates all works to input managers. class InputSystem final { ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/renderer.h
<gh_stars>10-100 #pragma once #include "badger/types/noncopyable.h" #include "pathos/scene/scene_render_settings.h" #include "pathos/render/render_command_list.h" #include "pathos/material/material_id.h" namespace pathos { class Scene; class Camera; class RenderTarget2D; class Renderer : public Noncopyable { ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/postprocessing/bloom_setup.h
#pragma once #include "post_process.h" namespace pathos { class BloomSetup : public PostProcess { public: virtual void initializeResources(RenderCommandList& cmdList) override; virtual void releaseResources(RenderCommandList& cmdList) override; virtual void renderPostProcess(RenderCommandList& cmdList, Plan...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/loader/spline_loader.h
#pragma once #include "badger/types/noncopyable.h" #include "badger/math/spline.h" #include <string> namespace pathos { class SplineLoader : public Noncopyable { public: SplineLoader() = default; ~SplineLoader() = default; bool load(const char* inFilename, bool bMakeLoop, std::string& outName, HermiteSplin...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/render_overlay.h
<reponame>codeonwort/pathosengine<filename>projects/PathosEngine/src/pathos/render/render_overlay.h #pragma once #include "render_command_list.h" #include "pathos/wrapper/transform.h" namespace pathos { // Renders the overlay (2D display over 3D scene) class OverlayRenderer { public: OverlayRenderer(); Overl...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/core_minimal.h
#pragma once #include "engine.h" #include "console.h" #include "util/log.h"
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/string_conversion.h
<filename>projects/PathosEngine/src/pathos/util/string_conversion.h #pragma once #include <string> namespace pathos { void MBCS_TO_WCHAR(const std::string& inStr, std::wstring& outStr); void WCHAR_TO_MBCS(const std::wstring& inStr, std::string& outStr); }
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/render_commands.generated.h
<reponame>codeonwort/pathosengine<filename>projects/PathosEngine/src/pathos/render/render_commands.generated.h struct RenderCommand_cullFace : public RenderCommandBase { GLenum mode; static void APIENTRY execute(const RenderCommand_cullFace* __restrict params) { glCullFace( params->mode ); } }; struct Render...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/actor/actor.h
<filename>projects/PathosEngine/src/pathos/actor/actor.h #pragma once #include "badger/math/rotator.h" #include "badger/types/int_types.h" #include "badger/types/vector_types.h" #include "badger/assertion/assertion.h" #include <vector> namespace pathos { class Scene; class World; class ActorComponent; class Scen...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/material/material.h
<reponame>codeonwort/pathosengine #pragma once #include "badger/types/vector_types.h" #include "pathos/named_object.h" #include "pathos/material/material_id.h" #include "pathos/camera/camera.h" #include "pathos/shader/shader.h" #include "pathos/mesh/geometry.h" #include "gl_core.h" #include <vector> namespace patho...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/mesh/geometry.h
<filename>projects/PathosEngine/src/pathos/mesh/geometry.h<gh_stars>10-100 #pragma once #include "pathos/named_object.h" #include "pathos/render/render_command_list.h" #include "gl_core.h" #include "badger/types/vector_types.h" namespace pathos { class MeshGeometry : public NamedObject { public: MeshGeometry()...
codeonwort/pathosengine
projects/Test_DeferredRenderer/src/csm_debugger.h
<reponame>codeonwort/pathosengine #pragma once #include "badger/types/vector_types.h" #include "pathos/camera/camera.h" #include "pathos/mesh/static_mesh_actor.h" #include "pathos/mesh/geometry_procedural.h" using namespace pathos; class CSMDebugger : public StaticMeshActor { public: CSMDebugger(); void drawCamer...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/actor/scene_component.h
<filename>projects/PathosEngine/src/pathos/actor/scene_component.h #pragma once #include "badger/math/rotator.h" #include "actor_component.h" #include "pathos/scene/scene.h" #include "pathos/util/engine_util.h" #include "pathos/mesh/model_transform.h" namespace pathos { class Scene; // SceneComponent metadata fo...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/scene/scene_render_settings.h
#pragma once #include "badger/types/int_types.h" #include "pathos/render/postprocessing/anti_aliasing.h" namespace pathos { struct SceneRenderSettings { bool isValid() const { return (sceneWidth != 0 && sceneHeight != 0); } uint32 sceneWidth = 0; uint32 sceneHeight = 0; uint32 frameCounter = 0; boo...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/engine_version.h
<gh_stars>10-100 #pragma once /** * Criteria * - Tag a milestone for each work in my kanban board. (https://github.com/codeonwort/pathosengine/projects/1) * - Increase engine version when a work is finished and merged to master branch. */ #define PATHOS_MAJOR_VERSION 0 #define PATHOS_MINOR_VERSION 5 #define PATHOS...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/postprocessing/depth_of_field.h
#pragma once #include "post_process.h" #include "pathos/shader/shader.h" #include "pathos/shader/uniform_buffer.h" namespace pathos { class DepthOfField : public PostProcess { public: ~DepthOfField(); virtual void initializeResources(RenderCommandList& cmdList) override; virtual void releaseResources(Rend...
codeonwort/pathosengine
projects/Test_ComputeShader/src/shaders.h
#pragma once #include "pathos/shader/shader.h" class DepthOfField { public: DepthOfField(); ~DepthOfField(); void execute(GLuint image); private: void createShaders(); GLuint createSubsumShader(); GLuint createBlurShader(); GLuint program_subsum2D; GLuint program_blur; };
codeonwort/pathosengine
projects/PathosEngine/src/badger/math/random.h
<filename>projects/PathosEngine/src/badger/math/random.h<gh_stars>10-100 #pragma once #include "badger/types/int_types.h" #include "glm/vec3.hpp" #include <random> #include <vector> #include <algorithm> #define RESET_RNG_ON_STARVATION 1 class RNG { public: RNG(uint32 nSamples) { std::mt19937 gen(rd()); std:...
codeonwort/pathosengine
projects/PathosEngine/src/gl3w/gl3w.c
#include <GL/gl3w.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> static HMODULE libgl; static void open_libgl(void) { libgl = LoadLibraryA("opengl32.dll"); } static void close_libgl(void) { FreeLibrary(libgl); } static void *get_proc(const char *proc) { void *res; res = wglGetProcAddress(...
codeonwort/pathosengine
projects/Test_SkeletalAnimation/src/animation.h
<gh_stars>10-100 #pragma once #include "assimp/scene.h" #include <string> #include <vector> namespace pathos { class SkeletalAnimation { public: SkeletalAnimation(aiAnimation* anim) { this->anim = anim; } inline const std::string getName() const { return std::string(anim->mName.C_Str()); } double get...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/light/point_light_actor.h
#pragma once #include "pathos/actor/actor.h" #include "pathos/light/point_light_component.h" namespace pathos { class PointLightActor : public Actor { public: PointLightActor() { lightComponent = createDefaultComponent<PointLightComponent>(); setAsRootComponent(lightComponent); } // #todo-light: T...
codeonwort/pathosengine
projects/PathosEngine/src/badger/system/platform.h
<filename>projects/PathosEngine/src/badger/system/platform.h #pragma once // Windows #if (defined(_WIN32) && _WIN32) || (defined(_WIN64) && _WIN64) #define PLATFORM_WINDOWS 1 #endif ////////////////////////////////////////////////////////////////////////// #ifndef PLATFORM_WINDOWS #define PLATFORM_WINDOWS 0 #endif
codeonwort/pathosengine
projects/Test_DeferredRenderer/src/world1.h
#pragma once #include "pathos/engine.h" #include "pathos/actor/world.h" using namespace pathos; #include <vector> ////////////////////////////////////////////////////////////////////////// #define VISUALIZE_CSM_FRUSTUM 1 #define DEBUG_SKYBOX 0 #if VISUALIZE_CSM_FRUSTUM #include "csm_debugger.h" #endif ex...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/shader/uniform_buffer.h
<reponame>codeonwort/pathosengine #pragma once // #todo-persistent-map-buffer // https://www.bfilipek.com/2015/01/persistent-mapped-buffers-in-opengl.html #include "badger/assertion/assertion.h" #include "gl_core.h" namespace pathos { class UniformBuffer { public: UniformBuffer() : ubo(0) , bufferSize(0)...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/texture/volume_texture.h
<reponame>codeonwort/pathosengine #pragma once #include "gl_core.h" #include "badger/types/noncopyable.h" #include "pathos/render/render_device.h" // #todo-texture: Abstract FreeImage type struct FIBITMAP; namespace pathos { class VolumeTexture final : public Noncopyable { public: VolumeTexture() : texture...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/overlay/brush.h
<filename>projects/PathosEngine/src/pathos/overlay/brush.h #pragma once #include "pathos/wrapper/transform.h" namespace pathos { class OverlayRenderer; class OverlayPass; // Base class class Brush { public: virtual class OverlayPass* configure(OverlayRenderer* renderer, const Transform& transformAccum) = 0; ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/text/font_mgr.h
<gh_stars>10-100 #pragma once #include <ft2build.h> #include FT_FREETYPE_H #include <map> #include <string> #pragma comment(lib, "freetype.lib") namespace pathos { struct FT_GlyphCache { FT_Vector advance; FT_Bitmap bitmap; FT_Int bitmap_top; FT_Int bitmap_left; }; struct GlyphMap { std::map<wchar_t,...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/shader/shader.h
#pragma once // OpenGL #include "gl_core.h" // STL #include <string> #include <vector> using namespace std; namespace pathos { // Forward declaration class ShaderSource; class Shader; // Utilities GLuint createProgram(const std::string& vsCode, const std::string& fsCode, const char* debugName); // only ve...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/overlay/label.h
<reponame>codeonwort/pathosengine<filename>projects/PathosEngine/src/pathos/overlay/label.h #pragma once #include "display_object.h" #include "pathos/text/textmesh.h" namespace pathos { class Label : public DisplayObject2D { public: static GLuint getFontTexture(); public: Label(); Label(const wchar_t* tex...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/mesh/mesh.h
<gh_stars>10-100 #pragma once #include "pathos/named_object.h" #include "pathos/mesh/geometry.h" #include "pathos/mesh/model_transform.h" #include "pathos/material/material.h" #include <vector> namespace pathos { using Geometries = std::vector<MeshGeometry*>; using Materials = std::vector<Material*>; // mesh as...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/render_target.h
<reponame>codeonwort/pathosengine<gh_stars>10-100 #pragma once #include "badger/types/int_types.h" #include "gl_core.h" namespace pathos { enum class RenderTargetFormat : uint8 { RGBA16F, RGBA16I, RGBA16UI, RGBA32F, RGBA32I, RGBA32UI, DEPTH16F, DEPTH24F, DEPTH32F, }; // Wrapper for a 2D text...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/god_ray.h
// Light shaft a.k.a. god ray #pragma once #include "pathos/scene/scene.h" #include "pathos/camera/camera.h" #include "pathos/shader/uniform_buffer.h" #include "gl_core.h" namespace pathos { class MeshGeometry; class DeferredRenderer; struct StaticMeshProxy; class GodRay final { static constexpr uint32 GOD_...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/light/shadow_omni.h
#pragma once #include "gl_core.h" #include "pathos/camera/camera.h" #include "pathos/scene/scene.h" #include "pathos/shader/uniform_buffer.h" #include "badger/types/noncopyable.h" #include <vector> namespace pathos { // Shadow pass for point lights. class OmniShadowPass : public Noncopyable { static const uint3...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/visualize_depth.h
#pragma once #include "pathos/scene/scene.h" #include "pathos/camera/camera.h" namespace pathos { class VisualizeDepth { public: VisualizeDepth(); ~VisualizeDepth(); void initializeResources(RenderCommandList& cmdList); void destroyResources(RenderCommandList& cmdList); void render(RenderCommandList&...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/gl_debug_group.h
#pragma once #include "badger/types/string_hash.h" #include "pathos/render/render_command_list.h" #include <string> #include <vector> namespace pathos { struct DebugGroupMarker { DebugGroupMarker(class RenderCommandList* cmdList, const char* eventName); ~DebugGroupMarker(); private: class RenderCommandLi...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/camera/camera.h
#pragma once #include "glm/glm.hpp" #include "badger/types/int_types.h" #include "pathos/wrapper/transform.h" #include <vector> namespace pathos { // #todo-camera: Orthogonal projection class PerspectiveLens { public: PerspectiveLens(float fovY_degrees, float aspectRatio, float znear, float zfar); glm::mat4...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/light/point_light_component.h
#pragma once #include "pathos/actor/scene_component.h" // Role model for parameters of point light: // https://docs.unrealengine.com/en-US/Engine/Rendering/LightingAndShadows/LightTypes/Point/index.html namespace pathos { struct PointLightProxy : public SceneComponentProxy { vector3 worldPosition; float ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/deferred/deferredpass.h
#pragma once #include "deferredpass_pack_base.h" #include "deferredpass_pack_solidcolor.h" #include "deferredpass_pack_texture.h" #include "deferredpass_pack_wireframe.h" #include "deferredpass_pack_bumptexture.h" #include "deferredpass_pack_pbr.h" #include "deferredpass_unpack.h"
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/engine_util.h
#pragma once #include "pathos/engine.h" using namespace pathos; namespace pathos { class EngineUtil { public: static StackAllocator& getRenderProxyAllocator() { return gEngine->renderProxyAllocator; } }; } // #todo-render-proxy: For performance, CHECK() and placement new might be disabled later. temp...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/overlay/overlaypass_text.h
<filename>projects/PathosEngine/src/pathos/render/overlay/overlaypass_text.h<gh_stars>10-100 #pragma once #include "overlaypass_base.h" namespace pathos { class OverlayPass_Text : public OverlayPass { public: OverlayPass_Text(); ~OverlayPass_Text(); virtual void renderOverlay(RenderCommandList& cmdList, Di...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/loader/gltf_loader.h
<reponame>codeonwort/pathosengine<filename>projects/PathosEngine/src/pathos/loader/gltf_loader.h // #todo-gltf: GLTF does not support curves :/ // WON'T DO: Until needed. #error "DO NOT INCLUDE IN PROJECT" #pragma once #include "badger/types/noncopyable.h" #include <string> namespace pathos { class GLTFLoader fina...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/skybox.h
#pragma once #include "sky.h" #include "pathos/mesh/geometry_primitive.h" #include "pathos/shader/uniform_buffer.h" #include "gl_core.h" namespace pathos { class Skybox : public SkyActor { public: void initialize(GLuint textureID); void setLOD(float inLOD); void render(RenderCommandList& cmdList, const Sce...
codeonwort/pathosengine
projects/Test_RacingGame/src/world_game1.h
#pragma once #include "pathos/engine.h" #include "pathos/actor/world.h" using namespace pathos; extern const vector3 CAMERA_POSITION; extern const vector3 CAMERA_LOOK_AT; namespace pathos { class AtmosphereScattering; class Skybox; class AnselSkyRendering; class DirectionalLightActor; class PointLig...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/mesh/geometry_primitive.h
#pragma once #include "geometry.h" #include "badger/types/int_types.h" #include "badger/types/vector_types.h" namespace pathos { enum EPrimitiveInitOptions : uint32 { None = 0, CalculateTangentBasis = 1 << 0, Default = CalculateTangentBasis, All ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/overlay/overlaypass.h
<gh_stars>10-100 #pragma once #include "overlaypass_base.h" #include "overlaypass_standard.h" #include "overlaypass_text.h"
codeonwort/pathosengine
projects/PathosEngine/src/badger/types/os.h
#pragma once #if defined(_WIN32) || defined(_WIN64) #define PLATFORM_WINDOWS 1 #endif // Linux, Android -> Maybe? // Mac, IOS -> I don't have them // Durango, Orbis -> I can't access them as a sole developer in my home :/ ////////////////////////////////////////////////////////////////////////// #ifndef PLATF...
codeonwort/pathosengine
projects/PathosEngine/src/badger/thread/thread_pool.h
#pragma once #include "badger/types/int_types.h" #include <mutex> #include <queue> #include <atomic> #include <vector> #include <thread> #include <functional> #include <condition_variable> class ThreadPool; struct WorkItemParam; using WorkItemRoutine = std::function<void(const WorkItemParam*)>; struct ThreadPoolWo...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/forward/translucency_rendering.h
#pragma once #include "pathos/render/renderer.h" #include "pathos/render/render_command_list.h" #include "pathos/shader/uniform_buffer.h" #include "pathos/camera/camera.h" namespace pathos { struct StaticMeshProxy; class TranslucencyRendering final { public: TranslucencyRendering(); ~TranslucencyRendering...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/scene/scene.h
<reponame>codeonwort/pathosengine<gh_stars>10-100 #pragma once #include "pathos/actor/actor.h" #include "pathos/material/material_id.h" #include "badger/types/matrix_types.h" #include "gl_core.h" #include <vector> namespace pathos { // Forward declaration class StaticMeshComponent; class SkyActor; class Volume...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/mesh/static_mesh_component.h
<reponame>codeonwort/pathosengine<gh_stars>10-100 #pragma once #include "pathos/actor/scene_component.h" #include "badger/types/matrix_types.h" namespace pathos { class Mesh; class MeshGeometry; class Material; // #todo-renderer: Further decompose struct StaticMeshProxy : public SceneComponentProxy { uint32 ...
codeonwort/pathosengine
projects/Test_SkeletalAnimation/src/daeloader.h
<gh_stars>10-100 // TODO: integrate to the engine #pragma once #include "pathos/mesh/mesh.h" #include "assimp/scene.h" #include "assimp/postprocess.h" #include "assimp/cimport.h" #include "skinned_mesh.h" #include <vector> #include <map> #pragma comment(lib, "assimp-vc140-mt.lib") namespace pathos { class DAEL...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/cpu_profiler.h
#pragma once #include "badger/system/stopwatch.h" #include "badger/types/int_types.h" #include <vector> #include <string> #include <atomic> #include <unordered_map> namespace pathos { struct ScopedCpuCounter { ScopedCpuCounter(const char* inName); ~ScopedCpuCounter(); uint32 threadId; const char* name; u...
codeonwort/pathosengine
projects/Test_DeferredRenderer/src/lightning_effect.h
<reponame>codeonwort/pathosengine<gh_stars>10-100 #pragma once #include "pathos\actor\actor.h" #include "pathos\mesh\static_mesh_component.h" using namespace pathos; namespace pathos { class StaticMeshComponent; class SphereGeometry; class ProceduralGeometry; class ColorMaterial; } class LightningParticleCompone...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/gui/gui_window.h
<filename>projects/PathosEngine/src/pathos/gui/gui_window.h #pragma once #include "badger/types/int_types.h" #include "pathos/input/input_constants.h" #include <functional> #include <string> #include <map> namespace pathos { struct GUIWindowCreateParams { // Process arguments int argc; char** argv; // Wi...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/postprocessing/anti_aliasing_fxaa.h
#pragma once #include "post_process.h" namespace pathos { class FXAA final : public PostProcess { public: virtual void initializeResources(RenderCommandList& cmdList) override; virtual void releaseResources(RenderCommandList& cmdList) override; virtual void renderPostProcess(RenderCommandList& cmdList, Plan...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/resource_finder.h
<reponame>codeonwort/pathosengine #pragma once #include <vector> #include <string> namespace pathos { // Given a path, searches for a matching full path. class ResourceFinder { public: static ResourceFinder& get(); // register a directory void add(const std::string& directory); // Returns empty string if ...
codeonwort/pathosengine
projects/PathosEngine/src/badger/types/noncopyable.h
#pragma once class Noncopyable { public: Noncopyable() = default; ~Noncopyable() = default; Noncopyable(const Noncopyable&) = delete; Noncopyable& operator=(const Noncopyable&) = delete; };
codeonwort/pathosengine
projects/PathosEngine/src/pathos/thread/engine_thread.h
#pragma once namespace pathos { // #todo-multi-thread: PATHOS engine loop is single-threaded yet inline bool isInMainThread() { return true; } // #todo-multi-thread: PATHOS engine loop is single-threaded yet inline bool isInRenderThread() { return true; } }
codeonwort/pathosengine
projects/Test_SkeletalAnimation/src/skinned_mesh.h
<filename>projects/Test_SkeletalAnimation/src/skinned_mesh.h #pragma once #include "pathos/mesh/mesh.h" #include "badger/types/vector_types.h" #include "glm/gtx/quaternion.hpp" #include "assimp/anim.h" #include "bone.h" #include "animation.h" #include <map> namespace pathos { struct Node { std::string name; ...
codeonwort/pathosengine
projects/PathosEngine/src/badger/math/spline.h
<reponame>codeonwort/pathosengine<filename>projects/PathosEngine/src/badger/math/spline.h #pragma once #include "badger/types/vector_types.h" #include "badger/types/int_types.h" #include "badger/types/matrix_types.h" #include <vector> class HermiteSpline { public: void clearPoints(); // You must call updateSpline(...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/postprocessing/tone_mapping.h
#pragma once #include "post_process.h" #include "pathos/shader/uniform_buffer.h" namespace pathos { class ToneMapping final : public PostProcess { public: virtual void initializeResources(RenderCommandList& cmdList) override; virtual void releaseResources(RenderCommandList& cmdList) override; virtual void...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/sky_clouds.h
<filename>projects/PathosEngine/src/pathos/render/sky_clouds.h<gh_stars>10-100 #pragma once #include "gl_core.h" #include "badger/types/noncopyable.h" #include "pathos/actor/actor.h" #include "pathos/shader/uniform_buffer.h" namespace pathos { class VolumeTexture; // Placeholder for world logic // NOTE: Should ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/overlay/overlaypass_base.h
<reponame>codeonwort/pathosengine #pragma once #include "pathos/overlay/display_object.h" #include "pathos/wrapper/transform.h" #include "gl_core.h" namespace pathos { class OverlayPass { public: virtual ~OverlayPass(); virtual void renderOverlay(RenderCommandList& cmdList, DisplayObject2D* object, const Tr...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render_minimal.h
<filename>projects/PathosEngine/src/pathos/render_minimal.h #pragma once #include "pathos/util/resource_finder.h" #include "pathos/scene/scene.h" #include "pathos/render/sky_atmosphere.h" #include "pathos/render/skybox.h" #include "pathos/render/sky_ansel.h" #include "pathos/camera/camera.h" #include "pathos/light/...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/material/material_id.h
#pragma once #include "badger/types/int_types.h" // each MeshMaterial-derived class should set one of these to its materialID. // #todo-material: maybe should be uint16 and INVALID be (MAX - 1)? enum class MATERIAL_ID : uint8 { SOLID_COLOR = 0, FLAT_TEXTURE = 1, WIREFRAME = 2, ...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/util/log.h
<filename>projects/PathosEngine/src/pathos/util/log.h #pragma once #include "file_system.h" #include "string_conversion.h" #include <iostream> #include <fstream> #include <stdio.h> #include <stdarg.h> #define ENABLE_LOGGER 1 namespace pathos { static const char* severity_strings[] = { "[DEBUG] ", "[INFO] ", ...
codeonwort/pathosengine
projects/Test_SkeletalAnimation/src/player_controller.h
#pragma once #include "pathos/actor/actor.h" using namespace pathos; class PlayerController : public Actor { public: virtual void onSpawn() override; virtual void onTick(float deltaSeconds) override; private: void setupInput(); bool rotateByMouse = false; };
codeonwort/pathosengine
projects/PathosEngine/src/badger/math/minmax.h
<reponame>codeonwort/pathosengine<gh_stars>10-100 #pragma once template<typename T> T min(T x, T y) { return (x < y) ? x : y; } template<typename T> T max(T x, T y) { return (x < y) ? y : x; } template<typename T> T clamp(T minValue, T value, T maxValue) { return (value < minValue) ? minValue : value > maxValue ?...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/mesh/geometry_procedural.h
#pragma once #include "geometry.h" #include <vector> namespace pathos { // Written for debugging. Does not support UVs and normals. class ProceduralGeometry : public MeshGeometry { public: ProceduralGeometry() {} ~ProceduralGeometry() {} void clear() { positions.clear(); uvs.clear(); indices.cl...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/sky.h
<reponame>codeonwort/pathosengine #pragma once #include "pathos/scene/scene.h" #include "pathos/camera/camera.h" #include "pathos/actor/actor.h" namespace pathos { class SkyActor : public Actor { public: virtual void render(RenderCommandList& cmdList, const Scene* scene, const Camera* camera) = 0; }; }
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/irradiance_baker.h
#pragma once #include "gl_core.h" namespace pathos { class IrradianceBaker { public: // Given a 2D texture, creates and returns a new cubemap texture static GLuint bakeCubemap(GLuint equirectangularMap, uint32 size); // cubemap : a texture returned by bakeCubemap() // size : size of the cubemap that w...
codeonwort/pathosengine
projects/PathosEngine/src/pathos/render/postprocessing/bloom.h
#pragma once #include "post_process.h" namespace pathos { class BloomPass : public PostProcess { public: virtual void initializeResources(RenderCommandList& cmdList) override; virtual void releaseResources(RenderCommandList& cmdList) override; virtual void renderPostProcess(RenderCommandList& cmdList, Plane...
codeonwort/pathosengine
thirdparty/opengl/GL/gl3w.h
#ifndef __gl3w_h_ #define __gl3w_h_ #include <GL/glcorearb.h> #ifndef __gl_h_ #define __gl_h_ #endif #ifdef __cplusplus extern "C" { #endif /* gl3w api */ int gl3wInit(void); int gl3wIsSupported(int major, int minor); void *gl3wGetProcAddress(const char *proc); /* OpenGL functions */ extern PFNGLCULLFACEPROC gl3wC...
CelestialAmber/hactool
extkeys.h
<filename>extkeys.h<gh_stars>0 #ifndef HACTOOL_EXTKEYS_H #define HACTOOL_EXTKEYS_H #include <string.h> #include "types.h" #include "utils.h" #include "settings.h" void parse_hex_key(unsigned char *key, const char *hex, unsigned int len); void extkeys_initialize_settings(hactool_settings_t *settings, FILE *f); void e...
osvlabs/decode-QR-image
src/ios/DecodeQRImage.h
#import <Cordova/CDVPlugin.h> @interface DecodeQRImage : CDVPlugin - (void)decode:(CDVInvokedUrlCommand*)command; @end
joelwanner/behavioral-model
src/BMI/bmi_port.c
<reponame>joelwanner/behavioral-model<gh_stars>1-10 /* Copyright 2013-present Barefoot Networks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
joelwanner/behavioral-model
include/bm/bm_sim/expressions.h
/* Copyright 2013-present Barefoot Networks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Tomas-Jakubec/GTMesh
src/GTMesh/Debug/VariableExport.h
#ifndef VARIABLEEXPORT_H #define VARIABLEEXPORT_H #include <iostream> #include <fstream> #include <string> #include <sstream> #include "../Traits/Traits.h" #include "../Traits/CustomTypeTraits.h" #include "../Traits/TraitsBind/TraitsBind.h" #include "../Traits/CustomTypeTraits.h" struct VariableExport { templ...
Tomas-Jakubec/GTMesh
tests/main.h
#ifdef HAVE_GTEST #include <gtest/gtest.h> #else #include "GtestMissingError.h" #endif int main( int argc, char* argv[] ) { #ifdef HAVE_GTEST ::testing::InitGoogleTest( &argc, argv ); return RUN_ALL_TESTS(); #else throw GtestMissingError(); #endif }
Tomas-Jakubec/GTMesh
tests/GtestMissingError.h
<reponame>Tomas-Jakubec/GTMesh /*************************************************************************** GtestMissingError.h - description ------------------- begin : Jul 2, 2017 copyright : (C) 2017 by <NAME> et al. email...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshFunctions/ComputeMeasures.h
#ifndef COMPUTEMEASURES_H #define COMPUTEMEASURES_H #include "MeshFunctionsDefine.h" #include "MeshApply.h" #include "../MeshDataContainer/MeshDataContainer.h" #include "../../NumericStaticArray/GramSchmidt.h" #include <array> #include "GetCenters.h" namespace Impl { template <unsigned int CurrentDimension, unsigne...
Tomas-Jakubec/GTMesh
src/GTMesh/Traits/MemberAccess/MemberAccess.h
<reponame>Tomas-Jakubec/GTMesh #ifndef MEMBERAPPROACH_H #define MEMBERAPPROACH_H #include "AccessType.h" #include "GetSetAccess.h" template<typename Class, typename Ref, typename = void> class MemberAccess { static_assert(!std::is_same<Ref, void>::value, "The type Ref must be reference to member ...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshIO/MeshWriter/MeshWriter.h
<reponame>Tomas-Jakubec/GTMesh<filename>src/GTMesh/UnstructuredMesh/MeshIO/MeshWriter/MeshWriter.h<gh_stars>0 #ifndef MESHWRITER_H #define MESHWRITER_H #include "../MeshNativeType.h" #include "../../../NumericStaticArray/Vertex.h" #include "../../MeshElements/MeshElements.h" /** * The base class of MeshWriters. */ te...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshFunctions/MeshFunctions.h
#ifndef MESH_FUNCTIONS_H #define MESH_FUNCTIONS_H #include "CellsDistance.h" #include "ComputeCellsCenterDifference.h" #include "ComputeCenters.h" #include "ComputeMeasures.h" #include "ComputeNormals.h" #include "EdgesOrientation.h" #include "MeshApply.h" #include "MeshColoring.h" #include "MeshConnections.h" #include...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshIO/MeshWriter/VTKMeshWriter.h
<filename>src/GTMesh/UnstructuredMesh/MeshIO/MeshWriter/VTKMeshWriter.h #ifndef VTKMESHWRITER_H #define VTKMESHWRITER_H #include "MeshWriter.h" #include "../../MeshElements/MeshElements.h" #include "../../MeshDataContainer/MeshDataContainer.h" #include "../../MeshFunctions/MeshFunctions.h" #include <map> #include <ost...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/UnstructuredMesh.h
#ifndef UNSTRUCTUREDMESH_H #define UNSTRUCTUREDMESH_H #include "MeshElements/MeshElements.h" #include "vector" #include <type_traits> #include "MeshFunctions/MeshFunctions.h" #include "MeshIO/MeshReader/FPMAMeshReader.h" #include "MeshIO/MeshReader/VTKMeshReader.h" #include "MeshIO/MeshWriter/FPMAMeshWriter.h" #includ...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshDataContainer/MeshDataContainerTraits/MeshDataContainerIOTraits.h
<reponame>Tomas-Jakubec/GTMesh<filename>src/GTMesh/UnstructuredMesh/MeshDataContainer/MeshDataContainerTraits/MeshDataContainerIOTraits.h #ifndef MESHDATACONTAINERIOTRAITS_H #define MESHDATACONTAINERIOTRAITS_H #include "MeshDataContainerTraits.h" template <typename T, unsigned int ...dims> class DefaultIOTraits<MeshDat...
Tomas-Jakubec/GTMesh
src/GTMesh/BinarySerializer/Serializers/SerializeSimple.h
<reponame>Tomas-Jakubec/GTMesh #ifndef SERIALIZESIMPLE_H #define SERIALIZESIMPLE_H #include <type_traits> #include <vector> #include <stdexcept> namespace Impl { template<typename T> constexpr bool IsSimpleSerializable_v = std::is_arithmetic<T>::value || std::is_enum<T>::value; } /** * @brief The SerializeSimple str...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshElements/CellBoundaryConnection.h
<reponame>Tomas-Jakubec/GTMesh #ifndef CELLBOUNDARYCONNECTION_H #define CELLBOUNDARYCONNECTION_H #include "../UnstructuredMeshDefine.h" #include "CellConnection.h" #include <stdexcept> #include <sstream> template<typename IndexType> class CellBoundaryConnection : public CellConnection<IndexType> { /** * @brie...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshFunctions/MeshNeighborhood.h
#ifndef MESHNEIGHBORHOOD_H #define MESHNEIGHBORHOOD_H #include "MeshConnections.h" template <unsigned int StartDim, unsigned int ConnectingDim, unsigned int ConnectedDim = StartDim, Order order = Order::ORDER_ASCEND> class MeshNeighborhood{ public: template<unsigned int MeshDimension, typename IndexType, typename...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshIO/MeshReader/MeshReader.h
#ifndef MESHREADER_H #define MESHREADER_H #include "../MeshNativeType.h" #include "../../MeshDataContainer/MeshDataContainer.h" /** * The base class of MeshReaders */ template<unsigned int MeshDimension> class MeshReader{ public: using elementType = MeshNativeType<MeshDimension>; /** * @brief Returns t...
Tomas-Jakubec/GTMesh
src/GTMesh/Traits/FunctionTraits.h
<reponame>Tomas-Jakubec/GTMesh<gh_stars>0 /* * A system for parsing function types */ #ifndef FUNCTION_TRAITS_H #define FUNCTION_TRAITS_H #include <tuple> template<class F> struct function_traits; // function pointer template<class R, class... Args> struct function_traits<R (*)(Args...)> : public function_traits<R(A...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshElements/MeshElements.h
#ifndef MESHELEMENTS_H #define MESHELEMENTS_H #include "MeshElement.h" #include "ElementIndex.hpp" template <unsigned int Dimension, typename IndexType, typename Real, unsigned int ...Reserve> struct MeshElements{ private: template<unsigned int dim, typename Void = void> struct _Reserve{ static unsi...
Tomas-Jakubec/GTMesh
src/GTMesh/Debug/Printers/PrintIndexable.h
#ifndef PRINTINDEXABLE_H #define PRINTINDEXABLE_H #include "../VariableExport.h" #include <GTMesh/Traits/CustomTypeTraits.h> #include <GTMesh/Traits/Interfaces/InterfaceIndexable.h> struct PrintIndexable { template<typename Indexable, std::enable_if_t<Interface::Indexable<Indexable>::value, bool> = true> stat...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshIO/MeshWriter/FPMAMeshWriter.h
#ifndef FPMAMESHWRITER_H #define FPMAMESHWRITER_H #include "MeshWriter.h" #include "../../MeshElements/MeshElements.h" #include "../../MeshDataContainer/MeshDataContainer.h" #include "../../MeshFunctions/MeshFunctions.h" #include <map> #include <ostream> template<unsigned int MeshDimension, typename IndexType = size_...
Tomas-Jakubec/GTMesh
src/GTMesh/UnstructuredMesh/MeshFunctions/MeshConnections.h
#ifndef MESHCONNECTIONS_H #define MESHCONNECTIONS_H #include "../MeshElements/MeshElements.h" #include "../MeshDataContainer/MeshDataContainer.h" #include "../../NumericStaticArray/Vector.h" #include "../../Debug/Debug.h" #include "MeshApply.h" #include "MeshFunctionsDefine.h" #include <valarray> #include <set> #inclu...
Tomas-Jakubec/GTMesh
src/GTMesh/Traits/Interfaces/InterfaceIndexable.h
<reponame>Tomas-Jakubec/GTMesh<filename>src/GTMesh/Traits/Interfaces/InterfaceIndexable.h #ifndef INTERFACEINDEXABLE_H #define INTERFACEINDEXABLE_H #include <type_traits> #include "../CustomTypeTraits.h" namespace Interface { /** * Generic template for indexable interface */ template <typename T, typename = void> st...