repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
BitPaw/BitFireEngine
SystemResource/Source/Sound/M4A/M4A.cpp
#include "M4A.h" BF::FileActionResult BF::M4A::Load(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::M4A::Save(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::M4A::ConvertTo(Sound& sound) { return FileActionResult::Successful; } ...
BitPaw/BitFireEngine
SystemResource/Source/Network/IPAdressInfo.cpp
<filename>SystemResource/Source/Network/IPAdressInfo.cpp<gh_stars>1-10 #include "IPAdressInfo.h" #include <string.h> BF::IPAdressInfo::IPAdressInfo() { SocketID = -1; for (size_t i = 0; i < IPv6LengthMax; i++) { IP[i] = 0; IPRawByte[i] = 0; } Port = 0; Protocol = ProtocolMode...
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Shape/Star.cpp
#include "Star.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/TTFTableEntry.cpp
#include "TTFTableEntry.h" BF::TTFTableEntry::TTFTableEntry() { TypeRaw[0] = '#'; TypeRaw[1] = '#'; TypeRaw[2] = '#'; TypeRaw[3] = '#'; Type = TTFTableEntryType::UnkownType; CheckSum = 0; Offset = 0; Length = 0; }
BitPaw/BitFireEngine
SystemResource/Source/ResourceType.hpp
<filename>SystemResource/Source/ResourceType.hpp<gh_stars>1-10 #pragma once namespace BF { enum class ResourceType { Unknown, Dialog, Font, Image, Model, Shader, Sound, Level }; }
BitPaw/BitFireEngine
SystemResource/Source/Compression/HUFFMAN/HuffmanSymbol.cpp
<gh_stars>1-10 #include "HuffmanSymbol.h" BF::HuffmanSymbol::HuffmanSymbol() { Code = 0; Length = 0; Value = 0; }
BitPaw/BitFireEngine
SystemResource/Source/Network/SocketType.cpp
#include "SocketType.h" #include "../OSDefine.h" #if defined(OSUnix) #include <sys/socket.h> #elif defined(OSWindows) #include <WinSock2.h> #endif #define SOCK_Invalid 0xFF BF::SocketType BF::ConvertSocketType(unsigned int socketType) { switch (socketType) { case SOCK_STREAM: return BF::SocketType::Stream; ...
BitPaw/BitFireEngine
SystemResource/Source/Image/GIF/GIF.cpp
#include "GIF.h" #include "../../File/FileStream.h" #include "../../Math/Math.h" #include "GIFImageDescriptor.h" #define GIFHeader {'G','I','F'} #define GIFVersionA {'8','7','a'} #define GIFVersionB {'8','9','a'} #define GIFEOF 0x3B BF::GIF::GIF() { } BF::FileActionResult BF::GIF::Load(const wchar_t* filePath) { ...
BitPaw/BitFireEngine
SystemResource/Source/Font/Font.cpp
#include "Font.h" #include "FNT/FNT.h" #include "OTF/OTF.h" #include "TTF/TTF.h" #include "../File/File.h" BF::FileActionResult BF::Font::Load(const wchar_t* filePath) { File file(filePath); FontFormat fontFormat = FileFormatPeek(filePath); if (!file.DoesFileExist()) { return FileActionResul...
BitPaw/BitFireEngine
SystemResource/Source/Event/Event.hpp
<reponame>BitPaw/BitFireEngine #pragma once namespace BF { template<class FunctionPonter> class Event { private: unsigned int SubscriberListSize; FunctionPonter SubscriberList[10]; public: Event() { SubscriberListSize = 0; //SubscriberList = nullptr; } void operator+=(FunctionPonter function...
BitPaw/BitFireEngine
SystemResource/Source/Image/PNG/Chunk/PNGImageHeader.cpp
#include "PNGImageHeader.h"
BitPaw/BitFireEngine
SystemResource/Source/File/OpenFileDialog.cpp
<reponame>BitPaw/BitFireEngine<gh_stars>1-10 #include "OpenFileDialog.h" #include "../OSDefine.h" #include <stdio.h> #if defined(OSUnix) #define _MAX_PATH 260 #elif defined(OSWindows) #include <windows.h> #include <shobjidl.h> #endif bool BF::OpenFileDialog::Open(char* filePathOutput) { wchar_t pathW[_MAX_PATH...
BitPaw/BitFireEngine
SystemResource/Source/Async/AsyncLock.cpp
#include "AsyncLock.h" #include <string.h> BF::AsyncLock::AsyncLock() { memset(&HandleID, 0, sizeof(HandleID)); } int BF::AsyncLock::Create() { int createResult = -1; #ifdef OSUnix int sharedPointer = 0; unsigned int value = 1; createResult = sem_init(&HandleID, sharedPointer, value); #elif defined(OSWindows)...
BitPaw/BitFireEngine
SystemResource/Source/Image/ImageDataFormat.cpp
#include "ImageDataFormat.h" const char* BF::ImageFormatToString(ImageDataFormat imageFormat) { switch (imageFormat) { case ImageDataFormat::AlphaMaskBinary: return "AlphaMaskBinary"; case ImageDataFormat::AlphaMask: return "AlphaMask"; case ImageDataFormat::RGB: return "RGB"; case ImageDataForma...
BitPaw/BitFireEngine
BitFireEngine/Source/System/IBitFireEngineListener.hpp
<gh_stars>1-10 #pragma once #include "../../SystemRender/Source/Device/InputContainer.h" namespace BF { class IBitFireEngineListener { public: virtual void OnStartUp() = 0; virtual void OnShutDown() = 0; virtual void OnUpdateGameLogic(float deltaTime) = 0; virtual void OnUpdateUI() = 0; virtual void On...
BitPaw/BitFireEngine
SystemResource/Source/Sound/WAV/RIFF.cpp
<reponame>BitPaw/BitFireEngine #include "RIFF.h" BF::RIFF::RIFF() { ChunkID[0] = '?'; ChunkID[1] = '?'; ChunkID[2] = '?'; ChunkID[3] = '?'; ChunkSize = 0; Format[0] = '?'; Format[1] = '?'; Format[2] = '?'; Format[3] = '?'; }
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/TTF.cpp
<reponame>BitPaw/BitFireEngine<gh_stars>1-10 #include "TTF.h" #include "TTFTableEntry.h" #include "Chunks/TTFOffsetTable.h" #include "../../File/FileStream.h" #include <cassert> #include "Chunks/OS2/Panose/TTFPanose.h" BF::FileActionResult BF::TTF::TTF::Load(const wchar_t* filePath) { FileStream file; FileActionRe...
BitPaw/BitFireEngine
SystemResource/Source/Compression/HUFFMAN/HuffmanNumberCode.cpp
#include "HuffmanNumberCode.h" BF::HuffmanNumberCode::HuffmanNumberCode() { NumberOfLiteralCodes = 0; NumberOfDistanceCodes = 0; NumberOfLengthCodes = 0; }
BitPaw/BitFireEngine
SystemResource/Source/Image/JPEG/JPEG.cpp
#include "JPEG.h" #include "JPEGMarker.h" #include "JPEGFrame.h" #include <cassert> #include <stdlib.h> #include "../../File/FileStream.h" BF::JPEG::JPEG() { HuffmanTableSize = 0; HuffmanTable = 0; CompressedImageDataSize = 0; CompressedImageData = 0; } BF::FileActionResult BF::JPEG::Load(const wch...
BitPaw/BitFireEngine
SystemResource/Source/Video/AVI/AVIHeader.cpp
#include "AVIHeader.h"
BitPaw/BitFireEngine
SystemResource/Source/Math/Physic/PhysicsDynamic.hpp
#pragma once #include "PhysicsStatic.hpp" #include "../Geometry/Vector3.hpp" #include <cassert> namespace BF { template<class NumberType> struct PhysicsDynamic : public PhysicsStatic<NumberType> { public: Vector3<NumberType> Velocity; Vector3<NumberType> Force; NumberType Mass; NumberType Friction; //...
BitPaw/BitFireEngine
SystemResource/Source/Math/Physic/PhysicsStatic.hpp
#pragma once #include "../Geometry/Matrix4x4.hpp" namespace BF { template<class NumberType> struct PhysicsStatic { public: Matrix4x4<float> MatrixModel; }; }
BitPaw/BitFireEngine
SystemResource/Source/Image/JPEG/JPEGScanStart.cpp
#include "JPEGScanStart.h" BF::JPEGScanStart::JPEGScanStart() { ScanSelectorSize = 0; SpectralSelectFrom = 0; SpectralSelectTo = 0; SuccessiveAproximation = 0; }
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFStrokeVariatoon.cpp
#include "TTFStrokeVariatoon.h" BF::TTFStrokeVariatoon BF::ConvertTTFStrokeVariatoon(unsigned char strokeVariatoon) { switch (strokeVariatoon) { case 0: return BF::TTFStrokeVariatoon::Any; case 1: return BF::TTFStrokeVariatoon::NoFit; case 2: return BF::TTFStrokeVariatoon::GradualDiagonal; cas...
BitPaw/BitFireEngine
SystemResource/Source/Container/RingBuffer.hpp
#pragma once namespace BF { template<class T> class RingBuffer { public: T* _data; unsigned int _size; unsigned int _currentIndex; RingBuffer(unsigned int size) { _data = new T[size]; _size = size; memset(_data,0, sizeof(T)* _size); } void Push(T& element) { _data[_currentIndex++] = ...
BitPaw/BitFireEngine
SystemResource/Source/Model/Material.cpp
#include "Material.h" BF::Material::Material() { Ambient[0] = 0; Ambient[1] = 0; Ambient[2] = 0; Diffuse[0] = 0; Diffuse[1] = 0; Diffuse[2] = 0; Specular[0] = 0; Specular[1] = 0; Specular[2] = 0; Emission[0] = 0; Emission[1] = 0; Emission[2] = 0; Texture = nullptr; }
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Matrix.hpp
<gh_stars>1-10 #pragma once namespace BF { template<class Numbertype, unsigned int Width, unsigned int Height> struct Matrix { public: Numbertype Data[Width * Height]; }; }
BitPaw/BitFireEngine
SystemResource/Source/File/FileOpenMode.hpp
#pragma once namespace BF { enum class FileOpenMode { Read, Write }; }
BitPaw/BitFireEngine
SystemResource/Source/Font/FNT/FNTPage.cpp
<filename>SystemResource/Source/Font/FNT/FNTPage.cpp #include "FNTPage.h" BF::FNTPage::FNTPage() { PageID = -1; PageFileName[0] = 0; CharacteListSize = 0; CharacteList = 0; } BF::FNTPage::~FNTPage() { delete[] CharacteList; }
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/KERN/TTFKerning.cpp
#include "TTFKerning.h" BF::TTFKerning::TTFKerning() { Version = 0; NumberOfSubtables = 0; KerningSubtableList = nullptr; } BF::TTFKerning::~TTFKerning() { delete[] KerningSubtableList; }
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/TTFLinearThreshold.cpp
<filename>SystemResource/Source/Font/TTF/Chunks/TTFLinearThreshold.cpp #include "TTFLinearThreshold.h" BF::TTFLinearThreshold::TTFLinearThreshold() { Version = 0; NumberOfGlyphs = 0; PelsHeightList = nullptr; }
BitPaw/BitFireEngine
SystemResource/Source/Sound/ISoundFormat.hpp
#pragma once #include "Sound.h" #include "../IFileFormat.hpp" namespace BF { struct ISoundFormat : public IFileFormat { virtual FileActionResult ConvertTo(Sound& sound) = 0; virtual FileActionResult ConvertFrom(Sound& sound) = 0; }; }
BitPaw/BitFireEngine
SystemResource/Source/Math/Physic/Collider.cpp
#include "Collider.h" #include "../Geometry/Form/Cube.h" BF::Collider::Collider(ColliderType type) { Type = type; OnCollisionCallBack = nullptr; } bool BF::Collider::IsInBoundingBox(Vector3<float> ancerPosition, Vector3<float> ancerSize, Vector3<float> targetPosition, Vector3<float> targetSize) { bool IsPoi...
BitPaw/BitFireEngine
SystemRender/Source/Device/InputContainer.cpp
<reponame>BitPaw/BitFireEngine<filename>SystemRender/Source/Device/InputContainer.cpp #include "InputContainer.h" BF::KeyBoard BF::InputContainer::KeyBoardInput = KeyBoard(); BF::Mouse BF::InputContainer::MouseInput = Mouse(); BF::InputContainer::InputContainer() { }
BitPaw/BitFireEngine
SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp
#include "PNGLastModificationTime.h"
BitPaw/BitFireEngine
SystemResource/Source/Container/Dictionary.hpp
<reponame>BitPaw/BitFireEngine #pragma once #include <stdlib.h> namespace BF { template <class Key, class Value> struct Dictionary { private: Key* KeyList; Value* ValueList; size_t SizeUsed; size_t SizeAllocated; public: Dictionary() { KeyList = nullptr; ValueList = nullptr; SizeUsed = 0;...
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/TTFHorizontalHeader.cpp
<filename>SystemResource/Source/Font/TTF/Chunks/TTFHorizontalHeader.cpp #include "TTFHorizontalHeader.h" #include <stdio.h> BF::TTFHorizontalHeader::TTFHorizontalHeader() { Ascender = 0; Descender = 0; LineGap = 0; AdvanceWidthMaximum = 0; MinimumLeftSideBearing = 0; MinimumRightSideBearing = 0; MaximalExtendX...
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Form/Cube.cpp
#include "Cube.h" #include <string.h> #include <cmath> BF::Cube::Cube() { float vertexData[] = { 1, 1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, -1, -1, }; unsigned int indexList[] = { 0,1,3,2, // Left OK 6,7,5,4, // Right OK 4,5,1,0, // Top OK 2,3...
BitPaw/BitFireEngine
BitFireEngine/Source/UI/UIElement.cpp
<reponame>BitPaw/BitFireEngine<gh_stars>1-10 #include "UIElement.h"
BitPaw/BitFireEngine
BitFireEngine/Source/UI/UIImage.cpp
<reponame>BitPaw/BitFireEngine #include "UIImage.h" void BF::UIImage::SetBorder(const int borderSize) { const int border = 1; const float borderOffset = border - borderSize; const float vertexPointData[36] = { // Normal -border, -border, 0, -border, border, 0, border, -border, 0, border, border, 0, -...
BitPaw/BitFireEngine
SystemResource/Source/Image/BMP/BMP.cpp
<gh_stars>1-10 #include "BMP.h" #include <cassert> #include "../../File/FileStream.h" #include "../../Math/Math.h" BF::BMP::BMP() { Type = BMPType::UnkownOrInavlid; InfoHeaderType = BMPInfoHeaderType::UnkownOrInvalid; PixelDataSize = 0; PixelData = 0; } BF::BMP::~BMP() { free(PixelData); } BF::F...
BitPaw/BitFireEngine
SystemResource/Source/Container/BinaryTree/BinaryTreeNode.hpp
#pragma once #include "BinaryTreeDirection.h" namespace BF { template<class T> struct BinaryTreeNode { public: T* Data; BinaryTreeNode<T>* LeftNode; BinaryTreeNode<T>* RightNode; BinaryTreeNode() { Data = nullptr; LeftNode = nullptr; RightNode = nullptr; } BinaryTreeDirection GetBele...
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFFamilyType.cpp
#include "TTFFamilyType.h" BF::TTFFamilyType BF::ConvertTTFFamilyType(unsigned char familyType) { switch (familyType) { case 0: return BF::TTFFamilyType::Any; case 1: return BF::TTFFamilyType::NoFit; case 2: return BF::TTFFamilyType::TextAndDisplay; case 3: return BF::TTFFamilyType::Script; case 4: return ...
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/AngleRadians.hpp
#pragma once #include "AngleDegree.hpp" namespace BF { template<class NumberType> struct AngleRadians { public: NumberType Value; AngleRadians(AngleDegree<NumberType> degree) { const NumberType conversionFactor = 3.1415926535897932384626433832 / 180.0; Value = degree * conversionFactor; } }; }
BitPaw/BitFireEngine
SystemResource/Source/Camera/CameraPerspective.hpp
<gh_stars>1-10 #pragma once namespace BF { enum class CameraPerspective { Orthographic, Perspective }; }
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/TTFMaximumProfile.cpp
#include "TTFMaximumProfile.h" BF::TTFMaximumProfile::TTFMaximumProfile() { NumberOfGlyphs = 0; PointsMaximal = 0; ContoursMaximal = 0; ComponentPointsMaximal = 0; ComponentContoursMaximal = 0; ZonesMaximal = 0; TwilightPointsMaximal = 0; StorageMaximal = 0; FunctionDefsMaximal = 0; InstructionDefsMaximal = ...
BitPaw/BitFireEngine
SystemResource/Source/Image/JPEG/JPEGMarker.cpp
#include "JPEGMarker.h" BF::JPEGMarker BF::ConvertJPEGMarker(unsigned char jpegMarker[2]) { if (jpegMarker[0] != PNGMarkerStartKey) { return BF::JPEGMarker::MarkerInvalid; } switch (jpegMarker[1]) { case PNGMarkerUnkownTypeCHANGETHIS: return BF::JPEGMarker::MarkerInvalid; // TODO: What is this? case PN...
BitPaw/BitFireEngine
SystemResource/Source/Sound/FLAC/FLAC.cpp
#include "FLAC.h" BF::FileActionResult BF::FLAC::Load(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::FLAC::Save(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::FLAC::ConvertTo(Sound& sound) { return FileActionResult::Successful...
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFWeight.cpp
#include "TTFWeight.h" BF::TTFWeight BF::ConvertTTFWeight(unsigned char weight) { switch (weight) { case 0: return BF::TTFWeight::Any; case 1: return BF::TTFWeight::NoFit; case 2: return BF::TTFWeight::VeryLight; case 3: return BF::TTFWeight::Light; case 4: return BF::TTFWeight::Thin; ...
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFProportion.cpp
<reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFProportion.cpp<gh_stars>1-10 #include "TTFProportion.h" BF::TTFProportion BF::ConvertTTFProportion(unsigned char proportion) { switch (proportion) { case 0: return BF::TTFProportion::Any; case 1: return BF::TTFProportion:...
BitPaw/BitFireEngine
SystemRender/Source/Device/InputButton.cpp
<filename>SystemRender/Source/Device/InputButton.cpp #include "InputButton.h" BF::InputButton::InputButton() { Value = 0x00; } bool BF::InputButton::IsShortPressed() { return Value > 0 && Value < 0xA0; } bool BF::InputButton::IsLongPressed() { return Value >= 0xA0; } bool BF::InputButton::IsPressed() { ...
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Matrix3x3.hpp
<reponame>BitPaw/BitFireEngine #pragma once namespace BF { template<class NumberType> struct Matrix3x3 { public: NumberType Data[9]; }; }
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Shape/Rectangle.cpp
<reponame>BitPaw/BitFireEngine #include "Rectangle.h" #include <cstring> BF::Rectangle::Rectangle() { Set(1, 1); } BF::Rectangle::Rectangle(float width, float height) { Set(width, height); } BF::Rectangle::Rectangle(float x, float y, float width, float height) { Set(x, y, width, height); } BF::Rectangle::Rectan...
BitPaw/BitFireEngine
SystemResource/Source/Sound/AAC/AAC.cpp
<reponame>BitPaw/BitFireEngine #include "AAC.h" BF::FileActionResult BF::AAC::Load(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::AAC::Save(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::AAC::ConvertTo(Sound& sound) { return F...
BitPaw/BitFireEngine
MakeFileGenerator/MakeFileGenerator.cpp
//----------------------------------------------------------------------------- #define _CRT_SECURE_NO_WARNINGS 1 //----------------------------------------------------------------------------- #if defined(__linux__) #define OSUnix #define _MAX_PATH 260 #define _MAX_DRIVE 3 #define _MAX_DIR 256 #define _MAX_FNA...
BitPaw/BitFireEngine
BitFireEngine/Source/UI/UIText.cpp
#include "UIText.h" #include "../../../SystemResource/Source/Font/FNT/FNT.h" #include "../../../SystemResource/Source/Math/Interpolate.h" #include "../../../SystemResource/Source/File/Text.h" void BF::UIText::Setup(const wchar_t* text, Font* font, float x, float y) { AncerPosition.Set(x, y); Width = 0; Height = 0; ...
BitPaw/BitFireEngine
SystemResource/Source/IFileFormat.hpp
<reponame>BitPaw/BitFireEngine #pragma once #include "File/FileActionResult.hpp" namespace BF { struct IFileFormat { virtual FileActionResult Load(const wchar_t* filePath) = 0; virtual FileActionResult Save(const wchar_t* filePath) = 0; }; }
BitPaw/BitFireEngine
SystemResource/Source/Model/Model.cpp
#include "Model.h" #include "ModelType.h" #include "3DS/A3DS.h" #include "FBX/FBX.h" #include "OBJ/OBJ.h" #include "PLY/PLY.h" #include "STL/STL.h" #include "VRML/VRML.h" #include "../File/File.h" #include "../../../SystemResource/Source/Math/Geometry/Shape/Triangle.h" #include "../../../SystemResource/Source/Math/G...
BitPaw/BitFireEngine
SystemResource/Source/Container/BinaryTree/BinaryTree.hpp
<gh_stars>1-10 #pragma once #include "BinaryTreeDirection.h" #include "BinaryTreeNode.hpp" namespace BF { template<class T> class BinaryTree { private: BinaryTreeNode<T>* _node; unsigned int _size; BinaryTreeDirection CheckNodeDirection(T value, T target) { const bool isBigger = value > target; i...
BitPaw/BitFireEngine
SystemResource/Source/ResourceInfo.cpp
<reponame>BitPaw/BitFireEngine #include "ResourceInfo.h" #include "File/Text.h" BF::ResourceInfo::ResourceInfo() { NameChange("<Unnamed>"); FilePathChange("<Internal Origin>"); } void BF::ResourceInfo::NameChange(const char* name) { Text::Copy(Name, name, ResourceNameSize); } void BF::ResourceInfo::NameChange(co...
BitPaw/BitFireEngine
SystemResource/Source/Model/MeshStructure.cpp
#include "MeshStructure.h" #include <stdlib.h> #include <stdio.h> BF::MeshStructure::MeshStructure() { Original = true; VertexArrayID = -1; VertexBufferID = -1; VertexDataSize = 0; VertexData = nullptr; VertexDataBlockListSize = 4; VertexDataBlockList[0] = 3; VertexDataBlockList[1] = 3; VertexDataBlockLis...
BitPaw/BitFireEngine
SystemResource/Source/Sound/MP3/MPEGGenre.hpp
<reponame>BitPaw/BitFireEngine #pragma once namespace BF { #define MPEGGenreIDBlues 0u #define MPEGGenreIDClassicRock 1u #define MPEGGenreIDCountry 2u #define MPEGGenreIDDance 3u #define MPEGGenreIDDisco 4u #define MPEGGenreIDFunk 5u #define MPEGGenreIDGrunge 6u #define MPEGGenreIDHipHop 7u #define MPEGGenreIDJazz 8u ...
BitPaw/BitFireEngine
SystemResource/Source/Sound/MP3/MP3Layer.hpp
#pragma once namespace BF { enum class MP3Layer { Reserved, LayerI, LayerII, LayerIII }; }
BitPaw/BitFireEngine
SystemResource/Source/Math/Physic/GravityCube.cpp
#include "GravityCube.h" #include "../Geometry/Form/Cube.h" #include <cassert> bool BF::GravityCube::IsColliding(Vector2<float> position) { return false; } bool BF::GravityCube::IsColliding(Vector3<float> position) { /* bool IsPointInObject = Cube::IsPointInObject ( BoundingBox.Position.X, ...
BitPaw/BitFireEngine
SystemResource/Source/Image/GIF/GIFImageDescriptor.cpp
<filename>SystemResource/Source/Image/GIF/GIFImageDescriptor.cpp #include "GIFImageDescriptor.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/DSIG/TTFDigitalSignatureBlock.cpp
#include "TTFDigitalSignatureBlock.h" BF::TTFDigitalSignatureBlock::TTFDigitalSignatureBlock() { Reserved1 = 0; Reserved2 = 0; SignatureLength = 0; Signature = nullptr; }
BitPaw/BitFireEngine
SystemRender/Source/VideoConfig.cpp
#include "VideoConfig.h" BF::VideoConfig::VideoConfig() { WindowRefreshRateMode = RefreshRateMode::VSync; ScreenResolution[0] = 1000 - 150; ScreenResolution[1] = 1000 - 250; FullScreen = false; }
BitPaw/BitFireEngine
SystemRender/Source/Device/Mouse/Mouse.cpp
#include "Mouse.h" BF::Mouse::Mouse() { ResetInput(); } void BF::Mouse::ResetInput() { Position[0] = 0; Position[1] = 0; ResetAxis(); Mode = CursorMode::Ignore; LeftButton.Value = 0; ScrollButton.Value = 0; RightButton.Value = 0; CustomButton1.Value = 0; CustomButton2.Value = 0; CustomButton3.Value = 0; ...
BitPaw/BitFireEngine
SystemResource/Source/Sound/WAV/WAV.cpp
<reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Sound/WAV/WAV.cpp #include "WAV.h" #include "../../File/FileStream.h" #include <cstring> BF::WAV::WAV() { SoundDataSize = 0; SoundData = nullptr; } BF::WAV::~WAV() { free(SoundData); } BF::FileActionResult BF::WAV::Load(const wchar_t* filePath) { File...
BitPaw/BitFireEngine
SystemResource/Source/Video/Video.cpp
<filename>SystemResource/Source/Video/Video.cpp<gh_stars>1-10 #include "Video.h"
BitPaw/BitFireEngine
SystemResource/Source/Sound/MP3/MPEGGenre.cpp
#include "MPEGGenre.hpp" BF::MPEGGenre BF::MPEGGenreConvert(unsigned char mpegGenre) { switch (mpegGenre) { case MPEGGenreIDBlues: return BF::MPEGGenre::Blues; case MPEGGenreIDClassicRock: return BF::MPEGGenre::ClassicRock; case MPEGGenreIDCountry: return BF::MPEGGenre::Country; case MPEGGenreIDD...
BitPaw/BitFireEngine
SystemResource/Source/Math/Physic/GravitySphere.cpp
<gh_stars>1-10 #include "GravitySphere.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/CMAP/TTFCharacterMapping.cpp
#include "TTFCharacterMapping.h" BF::TTFCharacterMapping::TTFCharacterMapping() { Version = 0; NumberOfTables = 0; EncodingRecordList = nullptr; }
BitPaw/BitFireEngine
SystemResource/Source/Compression/HUFFMAN/HuffmanCodeType.cpp
#include "HuffmanCodeType.h" BF::HuffmanCodeType BF::HuffmanCodeTypeFromCode(unsigned short code) { bool isLiteralSymbol = code <= 255u; bool isLengthCode = code >= 257u && code <= 285u; bool isEndBlock = code == 256u; if (isLiteralSymbol) { return HuffmanCodeType::Literal; } if (isLengthCode) { return H...
BitPaw/BitFireEngine
SystemResource/Source/Image/PNG/Chunk/PNGSuggestedPalette.cpp
<reponame>BitPaw/BitFireEngine #include "PNGSuggestedPalette.h"
BitPaw/BitFireEngine
SystemResource/Source/File/IFile.cpp
#include "IFile.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/TTFVerticalDeviceMetrics.cpp
<filename>SystemResource/Source/Font/TTF/Chunks/TTFVerticalDeviceMetrics.cpp #include "TTFVerticalDeviceMetrics.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFPanose.cpp
#include "TTFPanose.h" BF::TTFPanose::TTFPanose() { FamilyType = TTFFamilyType::Invalid; SerifStyle = TTFSerifStyle::Invalid; Weight = TTFWeight::Invalid; Proportion = TTFProportion::Invalid; Contrast = TTFContrast::Invalid; StrokeVariation = TTFStrokeVariatoon::Invalid; ArmStyle = TTFArmStyle::Invalid; Letter...
BitPaw/BitFireEngine
SystemResource/Source/Sound/MP3/MP3Emphasis.hpp
<reponame>BitPaw/BitFireEngine #pragma once namespace BF { enum class MP3Emphasis { Reserved, None, ms5015, CCITJ17, }; }
BitPaw/BitFireEngine
SystemResource/Source/Compression/ZLIB/ZLIBHeader.cpp
<filename>SystemResource/Source/Compression/ZLIB/ZLIBHeader.cpp #include "ZLIBHeader.h" #include <cassert> #include <string> #include "../../Math/Math.h" BF::ZLIBHeader::ZLIBHeader() { CompressionMethod = ZLIBCompressionMethod::Invalid; CompressionInfo = 0; CheckFlag = 0; DictionaryPresent = false; ...
BitPaw/BitFireEngine
SystemResource/Source/Font/FNT/FNTLineType.cpp
#include "FNTLineType.h" BF::FNTLineType BF::ConvertFNTLineType(const char* line) { // input check bool isCommonLine = line[0] == 'c' && line[1] == 'o' && line[2] == 'm' && line[3] == 'm' && line[4] == 'o' && line[5] == 'n' && line[6] == ' '; bool isCharacterCountLine = line[0] == 'c' && line[1] == 'h' && line[...
BitPaw/BitFireEngine
SystemResource/Source/Sound/WAV/FMT.cpp
#include "FMT.h" BF::FMT::FMT() { ChunkID[0] = '?'; ChunkID[1] = '?'; ChunkID[2] = '?'; ChunkID[3] = '?'; ChunkSize = 0; AudioFormat = 0; NumerOfChannels = 0; SampleRate = 0; ByteRate = 0; BlockAllign = 0; BitsPerSample = 0; }
BitPaw/BitFireEngine
SystemResource/Source/Image/JPEG/JPEGFrame.cpp
<reponame>BitPaw/BitFireEngine #include "JPEGFrame.h" BF::JPEGFrame::JPEGFrame() { Precusion = 0; LineNb = 0; LineSamples = 0; ComponentListSize = 0; }
BitPaw/BitFireEngine
TestNetwork/main.cpp
#define _CRT_SECURE_NO_WARNINGS #include "../SystemResource/Source/Network/Server.h" #include "../SystemResource/Source/Network/Client.h" #include "../SystemResource/Source/File/FileTemporary.h" #include "../SystemResource/Source/File/Program.h" #include "../SystemResource/Source/File/FileActionResult.hpp" #include ...
BitPaw/BitFireEngine
SystemResource/Source/Video/AVI/AVI.cpp
<filename>SystemResource/Source/Video/AVI/AVI.cpp #include "AVI.h" #include "../../File/FileStream.h" BF::FileActionResult BF::AVI::Load(const char* filePath) { FileStream fileStream; FileActionResult loadingResult = fileStream.ReadFromDisk(filePath); if (loadingResult != FileActionResult::Successful) ...
BitPaw/BitFireEngine
SystemResource/Source/Math/Geometry/Matrix2x2.hpp
#pragma once namespace BF { template<class Numbertype> class Matrix2x2 { private: Numbertype _matrixData[4]; public: Matrix2x2() { _matrixData.ReSize(2, 2); } Matrix2x2(Numbertype xx, Numbertype yx, Numbertype xy, Numbertype yy) : Matrix2x2() { Set(xx, yx, xy, yy); } Matrix2x2<Numbert...
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/TTFPostScript.cpp
#include "TTFPostScript.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/Chunks/KERN/TTFSubtableFormat0.cpp
#include "TTFSubtableFormat0.h" BF::TTFSubtableFormat0::TTFSubtableFormat0() { NumberOfPairs = 0; SearchRange = 0; EntrySelector = 0; RangeShift = 0; KerningPairList = nullptr; } BF::TTFSubtableFormat0::~TTFSubtableFormat0() { delete[] KerningPairList; }
BitPaw/BitFireEngine
SystemResource/Source/Model/FBX/FBX.cpp
<reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Model/FBX/FBX.cpp #include "FBX.h" BF::FileActionResult BF::FBX::Load(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileActionResult BF::FBX::Save(const wchar_t* filePath) { return FileActionResult::Successful; } BF::FileAc...
BitPaw/BitFireEngine
SystemResource/Source/Compression/HUFFMAN/HuffmanTree.cpp
#include "HuffmanTree.h" #include "HuffmanSymbol.h" #include "HuffmanNumberCode.h" /* a symbol value too big to represent any valid symbol, to indicate reading disallowed huffman bits combination, which is possible in case of only 0 or 1 present symbols. */ #define INVALIDSYMBOL 65535u #define NUM_DEFLATE_CODE_SYMBO...
BitPaw/BitFireEngine
BitFireEngine/Source/Collision/SystemPhysics.cpp
#include "SystemPhysics.h"
BitPaw/BitFireEngine
SystemResource/Source/Font/TTF/TTFTableEntryType.cpp
<reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Font/TTF/TTFTableEntryType.cpp<gh_stars>1-10 #include "TTFTableEntryType.h" BF::TTFTableEntryType BF::ConvertTableEntryType(char tag[4]) { char a = tag[0]; char b = tag[1]; char c = tag[2]; char d = tag[3]; switch (a) { case 'a': { ...
BitPaw/BitFireEngine
SystemResource/Source/Video/IVideoFormat.hpp
<reponame>BitPaw/BitFireEngine #pragma once #include "Video.h" #include "../IFileFormat.hpp" namespace BF { struct IVideoFormat : public IFileFormat { virtual FileActionResult ConvertTo(Video& video) = 0; virtual FileActionResult ConvertFrom(Video& video) = 0; }; }
BitPaw/BitFireEngine
BitFireEngine/Source/UI/UIButton.cpp
<gh_stars>1-10 #include "UIButton.h"
BitPaw/BitFireEngine
SystemResource/Source/Model/Mesh.cpp
#include "Mesh.h"
BitPaw/BitFireEngine
SystemResource/Source/Math/Interpolate.cpp
<filename>SystemResource/Source/Math/Interpolate.cpp #include "Interpolate.h" float BF::Interpolate::Liniar(const float yMinimum, const float yMaximum, const float xMinimum, const float xMaximum, float xValue) { // Cap Value xValue = xValue > xMaximum ? xMaximum : xValue; xValue = xValue < xMinimum ? xMini...
BitPaw/BitFireEngine
SystemResource/Source/Sound/MID/MID.cpp
#include "MID.h" #include "MIDICommand.h" #include "../../File/File.h" #include "../../File/FileStream.h" BF::MID::MID() { Format = 0; MusicSpeed = 0; TrackListSize = 0; TrackList = 0; } BF::MID::~MID() { delete[] TrackList; } BF::FileActionResult BF::MID::Load(const wchar_t* filePath) { const char midiTra...
BitPaw/BitFireEngine
BitFireEngine/Source/System/IBitFireEngineRenderListener.hpp
#pragma once #include "../../../SystemResource/Source/Image/Image.h" #include "../../../SystemResource/Source/Model/Model.h" #include "../../../SystemResource/Source/Game/SkyBox.h" namespace BF { class IBitFireEngineRenderListener { public: virtual void Register(SkyBox& skyBox) = 0; virtual void Register(Mode...
BitPaw/BitFireEngine
SystemResource/Source/Network/SocketActionResult.cpp
#include "SocketActionResult.h" const char* BF::SocketActionResultToString(SocketActionResult SocketActionResult) { switch (SocketActionResult) { case SocketActionResult::Successful: return "no error"; case SocketActionResult::SocketInavlidAdressFamily: return "socket inavlid adressfamily"; case Socket...
BitPaw/BitFireEngine
SystemResource/Source/Service/HTTP/HTTPError.cpp
<reponame>BitPaw/BitFireEngine #include "HTTPError.h"