repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
PerezEnric/Hydro-Engine
Hydro-Engine/Component_Mesh.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "Component.h" #include "Globals.h" #include <string> #include "Component_Texture.h" #include "btPrimitive.h" #include "Glew/include/glew.h" #include "MathGeoLib/include/Geometry/AABB.h" class Resource; class ResourceMesh; class PhysBody; class Component_Mesh :...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelConfig.h
#pragma once #include "Panel.h" #include <vector> #include "Json/json.hpp" #include <fstream> class PanelConfig :public Panel { public: PanelConfig(); ~PanelConfig(); bool Update() override; void ConfigApplication(); void WindowSettings(); void RenderSettings(); void HardwareInfo(); void InputInfo(); voi...
PerezEnric/Hydro-Engine
Hydro-Engine/Primitive.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "glmath.h" #include "Color.h" #include "ParShapes/par_shapes.h" #include "MathGeoLib/include/MathGeoLib.h" #include "MathGeoLib/include/MathBuildConfig.h" #include "MathGeoLib/include/MathGeoLibFwd.h" class Component_Mesh; enum PrimitiveTypes { P_PLANE, P_CU...
PerezEnric/Hydro-Engine
Hydro-Engine/Resource.h
<filename>Hydro-Engine/Resource.h #pragma once #include "Globals.h" #include <string> enum RESOURCE_TYPE { R_MESH, R_TEXTURE, R_ERROR }; class Resource { public: Resource(uint uuid, RESOURCE_TYPE type); ~Resource(); //This function will return the type of the current resource RESOURCE_TYPE GetType(); //...
PerezEnric/Hydro-Engine
Hydro-Engine/Component_Texture.h
#pragma once #include "Component.h" #include "Globals.h" #include <string> class ResourceTexture; class Component_Texture : public Component { public: Component_Texture(GameObject* GO, COMPONENT_TYPE type, bool _empty); Component_Texture(); void Load_Texture(); Component_Texture* GetThis(); void ShowInfo();...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleUI.h
<gh_stars>1-10 #ifndef __ModuleUI_H__ #define __ModuleUI_H__ #include "Module.h" #include "Primitive.h" #include "PanelConfig.h" #include "PanelAbout.h" #include "PanelConsole.h" #include "PanelShapes.h" #include "PanelHierarchy.h" #include "PanelInspector.h" #include "PanelSaveAndLoad.h" #include "PanelGame.h" #inclu...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleRenderer3D.h
<filename>Hydro-Engine/ModuleRenderer3D.h<gh_stars>1-10 #pragma once #include "Module.h" #include "Globals.h" #include "glmath.h" #include "Light.h" #define MAX_LIGHTS 8 class ModuleRenderer3D : public Module { public: ModuleRenderer3D(Application* app, bool start_enabled = true); ~ModuleRenderer3D(); bool Init()...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelInspector.h
#pragma once #include "Panel.h" class Component_Mesh; class Component_Transform; class Component_Texture; class PanelInspector :public Panel { public: PanelInspector(); ~PanelInspector(); void TransformWindow(); void MeshWindow(); void TextureWindow(); void FrustumWindow(); bool Update() override; public: ...
PerezEnric/Hydro-Engine
Hydro-Engine/GameObject.h
#pragma once #include "Globals.h" #include "Component.h" #include "Primitive.h" #include "Component_Mesh.h" #include "Component_Transform.h" #include "Component_Camera.h" #include "ModuleSceneIntro.h" #include "Json/json.hpp" #include <string> #include <vector> class Component_Texture; class Component_Mesh; class Co...
PerezEnric/Hydro-Engine
Hydro-Engine/ResourceMesh.h
#pragma once #include "Resource.h" #include "Globals.h" class Component_Mesh; class ResourceMesh : public Resource { public: ResourceMesh(uint uuid, RESOURCE_TYPE type); ~ResourceMesh(); bool LoadToMemory(); void NotReference(); bool UnLoadFromMemory(); void CleanUp(); public: Component_Mesh* my_mesh = nullp...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleResourceManager.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "Module.h" #include "Globals.h" #include "Resource.h" #include <map> class Application; class GameObject; class ResourceMesh; class ResourceTexture; class ResourceManager : public Module { public: ResourceManager(Application* app, bool start_enabled = true)...
PerezEnric/Hydro-Engine
Hydro-Engine/QuadTree.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include <vector> #include "MathGeoLib/include/Geometry/AABB.h" #include "MathGeoLib/include/Math/float3.h" class GameObject; // Quad Tree Node abreviated. struct QTN { //Constructor (0 game objects by now) QTN(AABB bound_limits); ~QTN(); // With this function we...
PerezEnric/Hydro-Engine
Hydro-Engine/Vehicle.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "PhysBody.h" #include "MathGeoLib/include/MathGeoLib.h" class btRaycastVehicle; struct PhysBody; struct car_wheel { float3 connection; float3 direction; float3 axis; float suspensionRestLength; float radius; float width; bool front; bool drive; bool ...
PerezEnric/Hydro-Engine
Hydro-Engine/WindowsItem.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include <windows.h> #include <shobjidl.h> #include <string> std::string openFileWID() { std::string ret; HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); if (SUCCEEDED(hr)) { IFileOpenDialog *pFileOpen; // Create the FileO...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleCamera3D.h
#pragma once #include "Module.h" #include "Globals.h" #include "glmath.h" #include "Component_Camera.h" class Component_Camera; class ModuleCamera3D : public Module { public: ModuleCamera3D(Application* app, bool start_enabled = true); ~ModuleCamera3D(); bool Start(); update_status Update(float dt); bool CleanU...
PerezEnric/Hydro-Engine
Hydro-Engine/Component_Transform.h
<reponame>PerezEnric/Hydro-Engine<filename>Hydro-Engine/Component_Transform.h #pragma once #include "Component.h" #include "MathGeoLib/include/MathGeoLib.h" class Component_Transform : public Component { public: Component_Transform(GameObject* GO, COMPONENT_TYPE type, bool _empty); Component_Transform(); float3 ...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleVehicle.h
#pragma once #include "Module.h" #include "Globals.h" #include "MathGeoLib/include/MathGeoLib.h" #define MAX_ACCELERATION 1000.0f #define TURN_DEGREES 15.0f * DEGTORAD struct Vehicle; class ModuleVehicle : public Module { public: ModuleVehicle(Application* app, bool start_enabled = true); virtual ~ModuleVehicle(...
PerezEnric/Hydro-Engine
Hydro-Engine/Application.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "Globals.h" #include "Timer.h" #include "Module.h" #include "ModuleWindow.h" #include "ModuleInput.h" #include "ModuleSceneIntro.h" #include "ModuleRenderer3D.h" #include "ModuleCamera3D.h" #include "ModuleUI.h" #include "ModuleFileSystem.h" #include "ModuleImpor...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleSceneIntro.h
<filename>Hydro-Engine/ModuleSceneIntro.h #pragma once #include "Module.h" #include "Globals.h" #include "Primitive.h" #include "btPrimitive.h" #include "GameTimer.h" #include "Glew/include/glew.h" #include "Json/json.hpp" #include <queue> #include <string> #define MAX_SNAKE 8 class GameObject; class btCube; class b...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelHierarchy.h
<gh_stars>1-10 #pragma once #include "Panel.h" class PanelHierarchy : public Panel { public: PanelHierarchy(); ~PanelHierarchy(); bool Update() override; void CreateNode(); public: bool show_hierarchy = true; int node_clicked = -1; };
PerezEnric/Hydro-Engine
Hydro-Engine/btPrimitive.h
#pragma once #include "MathGeoLib/include/MathGeoLib.h" #include "Color.h" #include "PhysBody.h" enum class PrimitiveT { PRIM_POINT, PRIM_LINE, PRIM_CUBE, PRIM_SPHERE, PRIM_CYLINDER, PRIM_CAPSULE }; class btPrimitive { public: btPrimitive(); virtual void Render() const; virtual void InnerRender() const; v...
PerezEnric/Hydro-Engine
Hydro-Engine/PhysBody.h
#pragma once #include <list> #include "MathGeoLib/include/MathGeoLib.h" class btRigidBody; class Module; struct PhysBody { friend class ModulePhysics; public: PhysBody(btRigidBody* body); ~PhysBody(); void Push(float x, float y, float z); void GetTransform(float* matrix) const; void SetTransform(const float* ...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelCamera.h
<gh_stars>1-10 #pragma once #include "Panel.h" class PanelCamera: public Panel { public: PanelCamera(); virtual ~PanelCamera(); bool Update() override; private: public: bool show_panelcam = true; };
PerezEnric/Hydro-Engine
Hydro-Engine/PanelAbout.h
#pragma once #include "Panel.h" #include "Json/json.hpp" #include <fstream> struct AboutFeatures { std::string engine_name; std::string description; std::string authors; std::string libraries; std::string license; std::string org; }; class PanelAbout :public Panel { public: PanelAbout(); ~PanelAbout(); bo...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelSaveAndLoad.h
#pragma once #include "Panel.h" class PanelSaveAndLoad : public Panel { public: PanelSaveAndLoad(); ~PanelSaveAndLoad(); bool Update() override; void SaveScene(); void LoadScene(std::string path); char str1[128] = ""; public: bool saving = false; };
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleInput.h
#pragma once #include "Module.h" #include "Globals.h" #define MAX_MOUSE_BUTTONS 5 enum KEY_STATE { KEY_IDLE = 0, KEY_DOWN, KEY_REPEAT, KEY_UP }; class ModuleInput : public Module { public: ModuleInput(Application* app, bool start_enabled = true); ~ModuleInput(); bool Init(); update_status PreUpdate(float ...
PerezEnric/Hydro-Engine
Hydro-Engine/Component_Collider.h
<reponame>PerezEnric/Hydro-Engine<filename>Hydro-Engine/Component_Collider.h #pragma once #include "Component.h" struct PhysBody; class Component_Collider : public Component { Component_Collider(GameObject* GO, COMPONENT_TYPE type, bool _empty); Component_Collider(); void ShowInfo(); void CleanUp(); bool Upd...
PerezEnric/Hydro-Engine
Hydro-Engine/GameTimer.h
#pragma once #include "Timer.h" class GameTimer { public: GameTimer(); ~GameTimer(); void Start(); void PlayGame(); void PauseGame(); void ResumeGame(); void StopGame(); float ReadSecGame(); public: Timer game_timer; float delta_time; // last frame time expressed in seconds float time_scale; // scale at ...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelGame.h
<filename>Hydro-Engine/PanelGame.h #pragma once #include "Panel.h" class PanelGame : public Panel { public: PanelGame(); ~PanelGame(); bool Update() override; public: //bool is_active = true; bool show_panelgame = false; };
PerezEnric/Hydro-Engine
Hydro-Engine/Component.h
#pragma once #include "MathGeoLib/include/Geometry/AABB.h" #include "MathGeoLib/include/Geometry/OBB.h" #include "Json/json.hpp" class GameObject; enum COMPONENT_TYPE { MESH, TEXTURE, TRANSFORM, CAMERA, COLLIDER, NONE }; NLOHMANN_JSON_SERIALIZE_ENUM(COMPONENT_TYPE, { {MESH, "c_mesh"}, {TEXTURE, "c_textur...
likebot0/waltz-lang
src/std/shim/posix/open/.h
<filename>src/std/shim/posix/open/.h #include <sys/stat.h> #include <fcntl.h>
BigETI/ConstexprMandelbrot
ConstexprMandelbrot/Mandelbrot.h
<filename>ConstexprMandelbrot/Mandelbrot.h #ifndef __CONSTEXPR_MANDELBROT_MANDELBROT_H__ # define __CONSTEXPR_MANDELBROT_MANDELBROT_H__ # include <array> # include <cstdint> # include <cmath> # include "Complex.h" # include "Color.h" /// <summary> /// constexpr mandelbrot namespace /// </summary> namespace ConstexprM...
BigETI/ConstexprMandelbrot
ConstexprMandelbrot/Color.h
<filename>ConstexprMandelbrot/Color.h<gh_stars>1-10 #ifndef __COLOR_H__ # define __COLOR_H__ #include <array> /// <summary> /// Color structure /// </summary> template <typename T, size_t RedIndex, size_t GreenIndex, size_t BlueIndex, size_t AlphaIndex> struct Color : std::array<T, 4> { /// <summary> /// Transparen...
BigETI/ConstexprMandelbrot
ConstexprMandelbrot/stb_image_write.c
<filename>ConstexprMandelbrot/stb_image_write.c #define STB_IMAGE_WRITE_IMPLEMENTATION #include "lib/stb_image_write.h"
BigETI/ConstexprMandelbrot
ConstexprMandelbrot/Complex.h
#ifndef __COMPLEX_H__ # define __COMPLEX_H__ /// <summary> /// Complex number structure /// </summary> template <typename T> struct Complex { /// <summary> /// Real part /// </summary> T real; /// <summary> /// Imaginary part /// </summary> T imaginary; /// <summary> /// Get magnitude squared /// </summar...
thaeseler-amd/renderdoc-1
renderdoc/data/resource.h
<reponame>thaeseler-amd/renderdoc-1 // clang-format off //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by renderdoc.rc // #define TYPE_EMBED 256 #define RESOURCE_misc_hlsl 101 #define RESOURCE_text_hlsl 102 #define RESOURCE_hlsl_cbuffers_h 103 #def...
thaeseler-amd/renderdoc-1
renderdoc/maths/formatpacking.h
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2020 <NAME> * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softw...
zhangxin0518/oRB-SLAM2
include/Initializer.h
/** * This file is part of ORB-SLAM2. * 单目相机初始化 * 基础矩阵F(随机采样序列 8点法求解) 和 单应矩阵计算( 采用归一化的直接线性变换(normalized DLT)) 相机运动 * 用于平面场景的单应性矩阵H和用于非平面场景的基础矩阵F, * 然后通过一个评分规则来选择合适的模型,恢复相机的旋转矩阵R和平移向量t。 * */ #ifndef INITIALIZER_H #define INITIALIZER_H #include<opencv2/opencv.hpp> #include "Frame.h" namespace ORB_SLAM2 { // THIS ...
zhangxin0518/oRB-SLAM2
include/FrameDrawer.h
<gh_stars>1-10 /** * This file is part of ORB-SLAM2. * 关键帧显示 */ #ifndef FRAMEDRAWER_H #define FRAMEDRAWER_H #include "Tracking.h" #include "MapPoint.h" #include "Map.h" #include<opencv2/core/core.hpp> #include<opencv2/features2d/features2d.hpp> #include<mutex> namespace ORB_SLAM2 { class Tracking; class Viewer; ...
zhangxin0518/oRB-SLAM2
include/System.h
/** * This file is part of ORB-SLAM2. * */ #ifndef SYSTEM_H #define SYSTEM_H #include<string> //字符串 #include<thread> // 线程 #include<opencv2/core/core.hpp> // opencv // user #include "Tracking.h" #include "FrameDrawer.h" #include "MapDrawer.h" #include "Map.h" #include "LocalMapping.h" #include "LoopClosing.h...
zhangxin0518/oRB-SLAM2
include/Map.h
/** * This file is part of ORB-SLAM2. * */ #ifndef MAP_H #define MAP_H #include "MapPoint.h" #include "KeyFrame.h" #include <set> #include <mutex> namespace ORB_SLAM2 { class MapPoint; class KeyFrame; class Map { public: Map(); void AddKeyFrame(KeyFrame* pKF); void AddMapPoint(MapPoint* pMP); v...
frankyliu-maxwin/NR5BLEReceiver_verify
NR5BLEReceiver.framework/Headers/NR5BLEReceiver.h
<reponame>frankyliu-maxwin/NR5BLEReceiver_verify<gh_stars>0 // // NR5BLEReceiver.h // NR5BLEReceiver // // Created by Yume on 2018/5/22. // Copyright © 2018年 Yume. All rights reserved. // //#import <UIKit/UIKit.h> //! Project version number for NR5BLEReceiver. extern double NR5BLEReceiverVersionNumber; //! Proje...
pmeerw/Triton
src/samples/ir_test_suite/ir.c
// Test cases for Triton // gcc -O0 -masm=intel ./ir.c -o ir void init(int *tab1, int *tab2, int *tab3, int *tab4) { tab1[0] = 0x11111111; tab1[1] = 0x22222222; tab1[2] = 0x33333333; tab1[3] = 0x44444444; tab2[0] = 0xd1d1d1d1; tab2[1] = 0xffffffff; tab2[2] = 0x55555555; tab2[3] = 0x44444444; tab3[0...
blockcig/slate
src/chainparamsseeds.h
<filename>src/chainparamsseeds.h #ifndef SLATE_CHAINPARAMSSEEDS_H #define SLATE_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the slate network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside a...
qi123456/com
mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QtCore> #include <QMessageBox> #include <QFile> #include <QInputDialog> #include <QFileDialog> #include <QTextStream> #include "qextserial/qextserialport.h" #include "aboutdialog.h" //延时,TIME_OUT是串口读写的延时 actionOpen #define TIME_OUT 10 //连续...
qi123456/com
aboutdialog.h
#ifndef ABOUTDIALOG_H #define ABOUTDIALOG_H #include <QDialog> namespace Ui { class AboutDialog; } class AboutDialog : public QDialog { Q_OBJECT public: AboutDialog(QWidget *parent = 0); ~AboutDialog(); protected: void changeEvent(QEvent *e); private: Ui::AboutDialog *ui; private slots: ...
uael/ush
src/reader.c
<gh_stars>0 /* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In...
uael/ush
include/ush/tokenizer.h
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdictio...
maxitg/LibraryLinkUtilities
include/LLU/WSTP/Strings.h
/** * @file Strings.h * @date Mar 22, 2018 * @author <NAME> <<EMAIL>> * @brief Definitions of multiple structures and type aliases related to string handling in WSTP */ #ifndef LLU_WSTP_STRINGS_H_ #define LLU_WSTP_STRINGS_H_ #include <algorithm> #include <functional> #include <memory> #include "wstp.h" #include...
maxitg/LibraryLinkUtilities
include/LLU/FileUtilities.h
<reponame>maxitg/LibraryLinkUtilities<filename>include/LLU/FileUtilities.h /** * @file FileUtilities.h * @author <NAME> <<EMAIL>> * @brief */ #ifndef LLU_FILEUTILITIES_H #define LLU_FILEUTILITIES_H #include <codecvt> #include <cstdio> #include <fstream> #include <ios> #include <locale> #include <memory> #include <...
maxitg/LibraryLinkUtilities
include/LLU/LibraryData.h
/** * @file * Definition of the LibraryData class. * This file is the only place in LLU where LibraryLink header files are included. It is done this way to solve the include order dependency issue which was * present in LibraryLink before WL version 12.1. */ #ifndef LLU_LIBRARYDATA_H #define LLU_LIBRARYDATA_H #in...
maxitg/LibraryLinkUtilities
include/LLU/Async/ThreadPool.h
<gh_stars>10-100 /** * @file * @author <NAME> <<EMAIL>> * @brief Definitions of two thread pool classes: basic with a single queue for all threads and more advanced one with local queues and work stealing. */ #ifndef LLU_ASYNC_THREADPOOL_H #define LLU_ASYNC_THREADPOOL_H #include <atomic> #include <deque> #inclu...
maxitg/LibraryLinkUtilities
include/LLU/Containers/NumericArray.h
<gh_stars>10-100 /** * @file NumericArray.h * @author <NAME> <<EMAIL>> * @date 6/07/2017 * * @brief Templated C++ wrapper for MNumericArray * */ #ifndef LLU_CONTAINERS_NUMERICARRAY_H_ #define LLU_CONTAINERS_NUMERICARRAY_H_ #include <initializer_list> #include <type_traits> #include "LLU/Containers/Generic/Nume...
maxitg/LibraryLinkUtilities
include/LLU/Containers/Interfaces.h
<gh_stars>10-100 /** * @file Interfaces.h * @author <NAME> <<EMAIL>> * @date November 28, 2019 * @brief */ #ifndef LLU_CONTAINERS_INTERFACES_H #define LLU_CONTAINERS_INTERFACES_H #include "LLU/LibraryData.h" namespace LLU { /** * @brief Abstract class that defines a basic set of operations on an image */ ...
maxitg/LibraryLinkUtilities
include/LLU/Async/WorkStealingQueue.h
/** * @file WorkStealingQueue.h * @author <NAME> <<EMAIL>> * @brief Definition and implementation of a thread-safe queue, taken from A. Williams "C++ Concurrency in Action" 2nd Edition, chapter 6. */ #ifndef LLU_ASYNC_WORKSTEALINGQUEUE_H #define LLU_ASYNC_WORKSTEALINGQUEUE_H #include <mutex> namespace LLU::Asyn...
maxitg/LibraryLinkUtilities
include/LLU/ProgressMonitor.h
/** * @file ProgressMonitor.h * @author <NAME> <<EMAIL>> * @brief Definition of ProgressMonitor class */ #ifndef LLU_PROGRESSMONITOR_H #define LLU_PROGRESSMONITOR_H #include "LLU/Containers/Tensor.h" namespace LLU { /** * @brief Stores and updates current progress of computation in a location shared between t...
maxitg/LibraryLinkUtilities
include/LLU/WSTP/Release.h
/** * @file Release.h * @date Nov 28, 2017 * @author <NAME> <<EMAIL>> * @brief Header file with classes responsible for releasing memory allocated by WSTP when receiving data. */ #ifndef LLU_WSTP_RELEASE_H_ #define LLU_WSTP_RELEASE_H_ #include <functional> #include "wstp.h" #include "LLU/Utilities.hpp" namespa...
maxitg/LibraryLinkUtilities
include/LLU/LibraryLinkFunctionMacro.h
<reponame>maxitg/LibraryLinkUtilities<gh_stars>10-100 /** * @file LibraryLinkFunctionMacro.h * @author <NAME> <<EMAIL>> * @date 10/08/2017 * * @brief Small collection of macros designed to reduce the amount of boilerplate code and to work around certain MSVC bug. * Defined in a separate header file to limit th...
maxitg/LibraryLinkUtilities
include/LLU/Async/Utilities.h
<reponame>maxitg/LibraryLinkUtilities /** * @file Utilities.h * @author <NAME> <<EMAIL>> * @brief Set of small utility classes and functions used in the Async part of LLU. */ #ifndef LLU_ASYNC_UTILITIES_H #define LLU_ASYNC_UTILITIES_H #include <functional> #include <future> #include <memory> #include <thread> #i...
maxitg/LibraryLinkUtilities
include/LLU/Async/Queue.h
/** * @file * @author <NAME> <<EMAIL>> * @brief Definition and implementation of a thread-safe queue, taken from A. Williams "C++ Concurrency in Action" 2nd Edition, chapter 6. */ #ifndef LLU_ASYNC_QUEUE_H #define LLU_ASYNC_QUEUE_H #include <condition_variable> #include <memory> #include <mutex> namespace LLU::...
maxitg/LibraryLinkUtilities
include/LLU/WSTP/Utilities.h
/** * @file Utilities.h * @date Nov 26, 2017 * @author <NAME> <<EMAIL>> * @brief Header file with miscellaneous utilities used throughout the WSTP-related part of LibraryLinkUtilities */ #ifndef LLU_WSTP_UTILITIES_H_ #define LLU_WSTP_UTILITIES_H_ #include <cstring> #include <string> #include "wstp.h" #include "...
maxitg/LibraryLinkUtilities
include/LLU/MArgument.h
<filename>include/LLU/MArgument.h /** * @file MArgument.h * @author <NAME> <<EMAIL>> * @date September 01, 2018 * @brief Template class and utilities to work with MArgument in type-safe manner. */ #ifndef LLU_MARGUMENT_H #define LLU_MARGUMENT_H #include <string> #include <variant> #include "LLU/LibraryData.h" #...
maxitg/LibraryLinkUtilities
include/LLU/WSTP/Put.h
/** * @file Put.h * @date Nov 28, 2017 * @author <NAME> <<EMAIL>> * @brief Header file with classes related to sending data through WSTP. */ #ifndef LLU_WSTP_PUT_H_ #define LLU_WSTP_PUT_H_ #include <functional> #include "wstp.h" #include "LLU/ErrorLog/Errors.h" #include "LLU/Utilities.hpp" #include "LLU/WSTP/Ut...
maxitg/LibraryLinkUtilities
include/LLU/ErrorLog/LibraryLinkError.h
<reponame>maxitg/LibraryLinkUtilities /** * @file LibraryLinkError.h * @author <NAME> <<EMAIL>> * * @brief Error class and error codes used by LibraryLink Utilities classes * */ #ifndef LLU_ERRORLOG_LIBRARYLINKERROR_H_ #define LLU_ERRORLOG_LIBRARYLINKERROR_H_ #include <stdexcept> #include <string> #include "LLU...
maxitg/LibraryLinkUtilities
include/LLU/Containers/DataList.h
/** * @file DataList.h * @author <NAME> <<EMAIL>> * @date September 01, 2018 * @brief Definition of templated DataStore wrapper called DataList. */ #ifndef LLU_CONTAINERS_DATALIST_H #define LLU_CONTAINERS_DATALIST_H #include <initializer_list> #include <string> #include <string_view> #include <utility> #include ...
maxitg/LibraryLinkUtilities
include/LLU/TypedMArgument.h
<filename>include/LLU/TypedMArgument.h /** * @file TypedMArgument.h * @author <NAME> <<EMAIL>> * @date April 28, 2020 * @brief */ #ifndef LLU_TYPEDMARGUMENT_H #define LLU_TYPEDMARGUMENT_H #include <complex> #include <string_view> #include <variant> #include "LLU/Containers/Generic/Image.hpp" #include "LLU/Contai...
maxitg/LibraryLinkUtilities
include/LLU/Containers/Image.h
/** * @file Image.h * @author <NAME> <<EMAIL>> * @date 18/04/2017 * * @brief Templated C++ wrapper for MImage * */ #ifndef LLU_CONTAINERS_IMAGE_H_ #define LLU_CONTAINERS_IMAGE_H_ #include <array> #include "LLU/Containers/Generic/Image.hpp" #include "LLU/Containers/MArray.hpp" namespace LLU { /** * @brief...
maxitg/LibraryLinkUtilities
include/LLU/Containers/Tensor.h
<gh_stars>10-100 /** * @file Tensor.h * @author <NAME> <<EMAIL>> * @date 6/07/2017 * * @brief Templated C++ wrapper for MTensor * */ #ifndef LLU_CONTAINERS_TENSOR_H_ #define LLU_CONTAINERS_TENSOR_H_ #include <initializer_list> #include <type_traits> #include "LLU/Containers/Generic/Tensor.hpp" #include "LLU/Co...
maxitg/LibraryLinkUtilities
include/LLU/NoMinMaxWindows.h
<gh_stars>10-100 /** * @file NoMinMaxWindows.h * @author <NAME> <<EMAIL>> * @date 3/10/2017 * * @brief Include windows.h without \c min and \c max macros * */ #ifndef LLU_NOMINMAXWINDOWS_H #define LLU_NOMINMAXWINDOWS_H #ifdef _WIN32 /* Prevent windows.h from defining max and min macros. They collide with std::...
maxitg/LibraryLinkUtilities
include/LLU/WSTP/Get.h
<filename>include/LLU/WSTP/Get.h /** * @file Get.h * @date Nov 28, 2017 * @author <NAME> <<EMAIL>> * @brief Header file with classes related to reading data from WSTP. */ #ifndef LLU_WSTP_GET_H_ #define LLU_WSTP_GET_H_ #include <functional> #include <memory> #include <string> #include "wstp.h" #include "LLU/Err...
maxitg/LibraryLinkUtilities
include/LLU/ErrorLog/Logger.h
<gh_stars>10-100 /** * @file Logger.h * @author <NAME> <<EMAIL>> * @brief Define Logger namespace containing logging related declarations and convenience macros. */ #ifndef LLU_ERRORLOG_LOGGER_H #define LLU_ERRORLOG_LOGGER_H #include <initializer_list> #include <mutex> #include <string> #include <utility> #includ...
maxitg/LibraryLinkUtilities
include/LLU/ErrorLog/ErrorManager.h
<gh_stars>10-100 /** * @file ErrorManager.h * @author <NAME> <<EMAIL>> * @date March 21, 2019 * @brief Definition of the ErrorManager class responsible for error registration and throwing. */ #ifndef LLU_ERRORLOG_ERRORMANAGER_H #define LLU_ERRORLOG_ERRORMANAGER_H #include <algorithm> #include <initializer_list> #...
philwinn/lis302dlh-i2c-driver
lis302dlh.h
<filename>lis302dlh.h #pragma once #include <stdint.h> static const uint8_t E_LIS_302_DLH_I2C_START = 1U; static const uint8_t E_LIS_302_DLH_I2C_WRITE = 2U; static const uint8_t E_LIS_302_DLH_I2C_REP_START = 3U; typedef struct lis302dlh_data { int16_t x; int16_t y; int16_t z; } lis302dlh_data_t; ...
philwinn/lis302dlh-i2c-driver
lis302dlh.c
#include "lis302dlh.h" #include "i2cmaster.h" #include "CException.h" /* I2C device slave adddress of LIS302DLH: */ static const uint8_t lis302dlh_addr = 0x30u; static const uint8_t reg_who_am_i = 0x0fu; static const uint8_t reg_ctrl_reg1 = 0x20u; static const uint8_t reg_ctrl_reg2 = 0x21u; static ...
cst0/discretized_movement
include/discretized_movement/Standard_Parameter_Names.h
<filename>include/discretized_movement/Standard_Parameter_Names.h<gh_stars>1-10 #ifndef STANDARD_PARAMETER_NAME_H #define STANDARD_PARAMETER_NAME_H #define ROSPARAM_NAME_STEP_SIZE_X "step_size_x" #define ROSPARAM_NAME_STEP_SIZE_Y "step_size_y" #define ROSPARAM_NAME_MAX_X "max_x" ...
lourencotadeu/ReservaPoltrona
poltrona-cinema.c
#define filas 21 #define poltro 30 #define dias 2 char a[filas][poltro][dias],op; int i,j,k,cont=0; int main(){ for(i=0;i<filas;i++){ for(j=0;j<poltro;j++){ for(k=0;k<dias;k++){ a[i][j][k]='D'; } } } printf("BEM VINDO AO CEFET CINEMAS\nTEMOS APENAS UM FILME POR SEMANA\nE UMA SESSAO EM CADA DIA DO FINAL D...
mgcsweek/petarv-world
probe.h
#ifndef __PROBE #define __PROBE void on_write(long long address, int value); void write(long long address, int value); #endif
rfuzzo/TexconvLib
Source/texconv.h
<filename>Source/texconv.h // // Created by moritz.baron on 28/01/2022. // #pragma once #ifdef _MSC_VER #include <SDKDDKVer.h> #endif #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdint.h> #include <limits.h> #if defined(_MSC_VER) #includ...
rfuzzo/TexconvLib
Source/DirectXTexEnums.h
#pragma once namespace DirectXTexSharp { enum class DDSFLAGS : unsigned long { DDS_FLAGS_NONE = 0x0, DDS_FLAGS_LEGACY_DWORD = 0x1, // Assume pitch is DWORD aligned instead of BYTE aligned (used by some legacy DDS files) DDS_FLAGS_NO_LEGACY_EXPANSION = 0x2, // Do not i...
ayushgargdroid/amcl3d
amcl3d/include/amcl3d/KdTreeNanoPclWrapper.h
/* * NOTICE: This software source code and any of its derivatives are the * confidential and proprietary information of Vecna Technologies, * Inc. (such source and its derivatives are hereinafter referred to as * "Confidential Information"). The Confidential Information is intended * to be used exclus...
ayushgargdroid/amcl3d
amcl3d/include/amcl3d/KdTreeNanoSearchPclWrapper.h
<filename>amcl3d/include/amcl3d/KdTreeNanoSearchPclWrapper.h /* * NOTICE: This software source code and any of its derivatives are the * confidential and proprietary information of Vecna Technologies, * Inc. (such source and its derivatives are hereinafter referred to as * "Confidential Information"). Th...
ayushgargdroid/amcl3d
amcl3d/src/Parameters.h
/*! * @file Parameters.h * @copyright Copyright (c) 2019, FADA-CATEC * * 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 re...
ayushgargdroid/amcl3d
amcl3d/src/PointCloudTools.h
/*! * @file PointCloudTools.h * @copyright Copyright (c) 2019, FADA-CATEC * * 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 * * Unle...
yogiz/ESP32cam-RoboCar
camera_class.h
//#include "esp_camera.h" //#include <ESPAsyncWebServer.h> #define PART_BOUNDARY "123456789000000000000987654321" static const char* STREAM_CONTENT_TYPE = "multipart/x-mixed-replace;boundary=" PART_BOUNDARY; static const char* STREAM_BOUNDARY = "\r\n--" PART_BOUNDARY "\r\n"; static const char* STREAM_PART = "Content-...
lyctw/capstone
tests/test_yc.c
<reponame>lyctw/capstone /* test1.c */ #include <stdio.h> #include <inttypes.h> #include <capstone/capstone.h> // little endian (same memory order printed by GDB) //#define CODE "\x33\x07\xa6\x00" #define CODE "\x4d\x5a\x6f\x10\xf0\x7f" int main(void) { csh handle; cs_insn *insn; size_t count; if (cs_open(CS...
kublish/libft
ft_strtol.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strtol.c :+: :+: :+: ...
kublish/libft
ft_lstnew.c
<reponame>kublish/libft /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c ...
kublish/libft
ft_gcf.c
<gh_stars>0 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_gcf.c :+: ...
kublish/libft
ft_strsplit.c
<filename>ft_strsplit.c /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strsplit.c ...
kublish/libft
ft_lstcontain.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstcontain.c :+: :+: :+: ...
blueskyson/lab0-c
queue.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* Notice: sometimes, Cppcheck would find the potential NULL pointer bugs, * but some of them cannot occur. You can suppress them by adding the * following line. * cppcheck-suppress nullPointer */ /* * Create em...
angelcamach0/CS278
lab7/main.c
#include <stdio.h> // I apologize I know i did really bad on this lab it just broke and I couldt work on it any more. int main(void) { char p,q,r ; int i = 0;int j = 0;int k = 0; int input = 0; printf( "truth table\n" ); printf( "P \t Q \t R \t | f (p,q,r)\n" ); printf( "--------------------------\n"); for (i...
QetriX/Objective-C
DataStores/FileSystem.h
<reponame>QetriX/Objective-C<filename>DataStores/FileSystem.h // // FileSystem.h // // Created by QetriX on 25/04/14. // Copyright (c) 2015 QetriX. All rights reserved. // #import <Foundation/Foundation.h> #import "Util.h" @interface FileSystem : NSObject @property (strong, nonatomic) NSString *host; @property (s...
QetriX/Objective-C
libs/util.h
<filename>libs/util.h // // Util.h // // Created by QetriX on 25/04/14. // Copyright (c) 2015 QetriX. All rights reserved. // #import <Foundation/Foundation.h> @interface Util : NSObject - (NSString *)UrlEncode:(NSString *)value; - (NSString *)UrlDecode:(NSString *)value; @end
rlatkddn212/rts-project
RTSProject/RTSProject/Building.h
<filename>RTSProject/RTSProject/Building.h #pragma once #include "BuildingMesh.h" #include "Terrain.h" #include "RTSObject.h" class Building : public RTSObject { public: Building(){} Building(int type); virtual ~Building(); void MakeModel(int type); virtual void Rend...
rlatkddn212/rts-project
RTSProject/RTSProject/MapObject.h
#pragma once #include "RTSObject.h" #include "StaticMesh.h" #include "RenderManager.h" class MapObject : public RTSObject { public: MapObject() {} MapObject(int type); virtual ~MapObject(); void MakeModel(int type); virtual void Update(float deltaTime); virtual void...
rlatkddn212/rts-project
RTSProject/RTSProject/ShadowMap.h
<gh_stars>0 #pragma once #include "Texture.h" class ShadowMap { public: ShadowMap(); ~ShadowMap(); bool Initialize(int width, int height); void Terminate(); unsigned int GetFrameBufferID() const { return mFramebuffer; } void SetActive(int pos); protected: ...
rlatkddn212/rts-project
RTSProject/RTSProject/VertexArray.h
<reponame>rlatkddn212/rts-project<filename>RTSProject/RTSProject/VertexArray.h<gh_stars>0 /** * VertexArray */ #pragma once class VertexArray { public: VertexArray(const float* verts, unsigned int numVerts, const unsigned int* indices, unsigned int numIndices); ~VertexArray(); vo...
rlatkddn212/rts-project
RTSProject/RTSProject/GBuffer.h
#pragma once #include "Texture.h" #include <vector> class GBuffer { public: enum Type { EDiffuse = 0, ENormal, EWorldPos, NUM_GBUFFER_TEXTURES }; GBuffer(); ~GBuffer(); bool Initialize(int width, int height); void Terminate(); std::shared_ptr<Texture> GetTexture(Typ...
rlatkddn212/rts-project
RTSProject/RTSProject/Player.h
<gh_stars>0 #pragma once #include "Precompiled.h" #include "Building.h" #include "Unit.h" #include "Camera.h" class GameStage; class Player { public: Player(); virtual ~Player(); virtual void Initialize(std::shared_ptr<Terrain> terrain, int w, int h); virtual void Terminate(); vir...