repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
BitPaw/BitFireEngine | SystemResource/Source/Game/SkyBox.cpp | <reponame>BitPaw/BitFireEngine
#include "SkyBox.h"
#include "../Math/Geometry/Form/Cube.h"
BF::SkyBox::SkyBox()
{
Faces[0].Type = ImageType::TextureCubeRight;
Faces[1].Type = ImageType::TextureCubeLeft;
Faces[2].Type = ImageType::TextureCubeTop;
Faces[3].Type = ImageType::TextureCubeDown;
Faces[4].Type = ImageTyp... |
BitPaw/BitFireEngine | SystemResource/Source/File/File.cpp | #include "File.h"
#include "../Container/AsciiString.h"
#include "../OSDefine.h"
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <cwchar>
#if defined(OSUnix)
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <libgen.h>
#define FileRemoveA remove
#define FileRemoveW(string) remo... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MP3/MPEGAudioTag.cpp | <gh_stars>1-10
#include "MPEGAudioTag.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Shader/ShaderType.cpp | <reponame>BitPaw/BitFireEngine
#include "ShaderType.h"
const char* BF::ShaderTypeToString(ShaderType shaderType)
{
switch (shaderType)
{
default:
case BF::ShaderType::Unkown:
return "Unkown";
case BF::ShaderType::Vertex:
return "Vertex";
case BF::ShaderType::TessellationControl:
return "Tessellati... |
BitPaw/BitFireEngine | SystemResource/Source/Container/BinaryTree/BinaryTreeData.hpp | <gh_stars>1-10
#pragma once
/*
#include "BinaryTreeDirection.h"
#include "BinaryTreeDataNode.hpp"
#include "BinaryTreeDataRotationInformation.h"
namespace BF
{
template <class Key, class Value>
class BinaryTreeData
{
private:
BinaryTreeDataNode<Key, Value>* _node;
unsigned int _size;
BinaryTreeDirection Ch... |
BitPaw/BitFireEngine | SystemResource/Source/Model/MeshRenderInfo.cpp | <gh_stars>1-10
#include "MeshRenderInfo.h"
BF::MeshRenderInfo::MeshRenderInfo()
{
ShouldBeRendered = true;
ShaderProgramID = -1;
MaterialID = -1;
}
|
BitPaw/BitFireEngine | SystemResource/Source/Font/IFontFormat.hpp | <gh_stars>1-10
#pragma once
#include "Font.h"
#include "../IFileFormat.hpp"
namespace BF
{
struct IFontFormat : public IFileFormat
{
virtual FileActionResult ConvertTo(Font& font) = 0;
virtual FileActionResult ConvertFrom(Font& font) = 0;
};
} |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFSerifStyle.cpp | #include "TTFSerifStyle.h"
BF::TTFSerifStyle BF::ConvertTTFSerifStyle(unsigned char serifStyle)
{
switch (serifStyle)
{
case 0: return BF::TTFSerifStyle::Any;
case 1: return BF::TTFSerifStyle::NoFit;
case 2: return BF::TTFSerifStyle::Cove;
case 3: return BF::TTFSerifStyle::ObtuseCove;
case 4: return BF::TT... |
BitPaw/BitFireEngine | SystemResource/Source/File/Text.cpp | #include "Text.h"
#include <cstring>
#include <cassert>
#include <cstdarg>
#define MakeLetterCaseLower(character) (character | 0b00100000)
#define MakeLetterCaseUpper(character) (character & 0b11011111)
#define CompareLetterCaseIgnore(a, b) (MakeLetterCaseLower(a) == b) || (MakeLetterCaseUpper(a) == b)
inline wchar_... |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/DSIG/TTFDigitalSignature.cpp | <filename>SystemResource/Source/Font/TTF/Chunks/DSIG/TTFDigitalSignature.cpp
#include "TTFDigitalSignature.h"
BF::TTFDigitalSignature::TTFDigitalSignature()
{
Version = 0;
NumberOfSignatures = 0;
Flags = 0;
SignatureRecordList = nullptr;
SignatureBlockList = nullptr;
}
|
BitPaw/BitFireEngine | SystemResource/Source/Camera/Camera.cpp | <reponame>BitPaw/BitFireEngine
#include "Camera.h"
#include <stdio.h>
#include <cmath>
float BF::Camera::AspectRatioGet()
{
return (float)Width / (float)Height;
}
void BF::Camera::AspectRatioSet(float width, float height)
{
Width = width;
Height = height;
PerspectiveChange(Perspective);
}
void BF::Camera::Persp... |
BitPaw/BitFireEngine | SystemResource/Source/Network/ServerListeningThreadInfo.cpp | <reponame>BitPaw/BitFireEngine
#include "ServerListeningThreadInfo.h"
BF::ServerListeningThreadInfo::ServerListeningThreadInfo()
{
ServerSocket = nullptr;
ServerAdress = nullptr;
}
BF::ServerListeningThreadInfo::ServerListeningThreadInfo(IOSocket* serverSocket, Server* server)
{
ServerSocket = serverSocket;
Serve... |
BitPaw/BitFireEngine | SystemResource/Source/Container/QuadTree/QuadTreeDirection.hpp | #pragma once
namespace BF
{
enum class QuadTreeDirection
{
None,
NorthEast,
NorthWest,
SouthEast,
SouthWest
};
} |
BitPaw/BitFireEngine | SystemResource/Source/Math/Physic/GravityField.cpp | #include "GravityField.h"
BF::GravityField::GravityField() : Collider(ColliderType::Gravity)
{
PullForce = 0;
} |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MID/MIDICommand.cpp | <reponame>BitPaw/BitFireEngine
#include "MIDICommand.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Model/PLY/PLY.cpp | #include "PLY.h"
BF::FileActionResult BF::PLY::Load(const char* filePath)
{
return FileActionResult::Successful;
}
BF::FileActionResult BF::PLY::Save(const char* filePath)
{
return FileActionResult::Successful;
}
BF::FileActionResult BF::PLY::ConvertTo(Model& model)
{
return FileActionResult::Successful;... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MID/MIDICommandExtended.cpp | <filename>SystemResource/Source/Sound/MID/MIDICommandExtended.cpp
#include "MIDICommandExtended.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Image/PNG/PNGColorCompressor.cpp | <filename>SystemResource/Source/Image/PNG/PNGColorCompressor.cpp
#include "PNGColorCompressor.h"
#include <string.h>
unsigned int BF::PNGColorCompressor::Decompress(const unsigned char* pixelDataIn, unsigned char* pixelDataOut, size_t width, size_t height, unsigned char bitDepth, PNGColorType colorType)
{
LodePNG... |
BitPaw/BitFireEngine | SystemResource/Source/Container/QuadTree/QuadTreeNode.hpp | <filename>SystemResource/Source/Container/QuadTree/QuadTreeNode.hpp
#pragma once
#define QuadTreeNodeChildSize 4
#define QuadTreeNodeChildInsertedInField -5
#define QuadTreeNodeChildNotInField -10
#define QuadTreeNodeChildNorthEast -20
#define QuadTreeNodeChildNorthWest -21
#define QuadTreeNodeChildSouthEast -22
#de... |
BitPaw/BitFireEngine | SystemResource/Source/Image/ImageType.cpp | #include "ImageType.h"
const char* BF::ImageTypeToString(ImageType imageType)
{
switch (imageType)
{
case ImageType::TextureUnkown:
return "Unkown";
case ImageType::Texture2D:
return "2D";
case ImageType::Texture3D:
return "3D";
case ImageType::TextureCubeContainer:
return "Cube(Main)";
case... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MID/MIDITrackHeader.cpp | #include "MIDITrackHeader.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Network/IPAdressFamily.cpp | #include "IPAdressFamily.h"
#include "../OSDefine.h"
#define IPAF_UNSPEC 0 // Unspecified
#define IPAF_LOCAL 1 // Local to host (pipes and file-domain).
#define IPAF_UNIX IPAF_LOCAL // POSIX name for IPAF_LOCAL.
#define IPAF_FILE IPAF_LOCAL // Another non-standard name for IPAF_LOCAL.
#define IPAF_INET 2 // IP pro... |
BitPaw/BitFireEngine | SystemResource/Source/Container/QuadTree/QuadTree.hpp | #pragma once
#include "QuadTreeNode.hpp"
#include <cassert>
#include <cstdlib>
namespace BF
{
template<typename NumberType, class T>
struct QuadTree
{
public:
size_t NodeListSize;
QuadTreeNode<NumberType, T>* NodeList;
QuadTree()
{
NodeListSize = 0;
NodeList = nullptr;
}
~Q... |
BitPaw/BitFireEngine | SystemResource/Source/Image/BMP/BMPInfoHeader.cpp | #include "BMPInfoHeader.h"
BF::BMPInfoHeader::BMPInfoHeader()
{
HeaderSize = 40u;
NumberOfBitsPerPixel = 24u;
NumberOfColorPlanes = 1u;
Width = 0;
Height = 0;
CompressionMethod = 0;
ImageSize = 0;
HorizontalResolution = 1u;
VerticalResolution = 1u;
NumberOfColorsInTheColorPalette = 0;
NumberOfImportantCol... |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/TTFVersionType.cpp | #include "TTFVersionType.h"
BF::TTFVersionType BF::ConvertVersionType(unsigned short major, unsigned short minor)
{
switch (minor)
{
case 0:
{
switch (major)
{
case 1: return TTFVersionType::Version1Dot0;
case 2: return TTFVersionType::Version2Dot0;
case 3: return TTFVersionType::Version3Dot0;... |
BitPaw/BitFireEngine | SystemRender/Source/VulcanAPI.cpp | <reponame>BitPaw/BitFireEngine
#include "VulcanAPI.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Image/BMP/BMPInfoHeaderType.cpp | #include "BMPInfoHeaderType.h"
BF::BMPInfoHeaderType BF::ConvertBMPInfoHeaderType(unsigned int infoHeaderType)
{
switch (infoHeaderType)
{
case 12u:
//const unsigned char bitMapCoreHeaderSize = 12;
return BMPInfoHeaderType::OS21XBitMapHeader;
case 16u:
retur... |
BitPaw/BitFireEngine | SystemResource/Source/File/FileTemporary.cpp | #include "FileTemporary.h"
#include "../OSDefine.h"
#include <string>
#include <cassert>
#if defined(OSUnix)
#define PipeOpen popen
#define PipeOpenW(wchar, mode) popen((char*)wchar, (const char*) mode) // TODO: instable
#define PipeClose pclose
#elif defined(OSWindows)
#define PipeOpen _popen
#define PipeOpenW _wpop... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/SoundPlayStyle.hpp | <gh_stars>1-10
#pragma once
namespace BF
{
enum class SoundPlayStyle
{
Once,
Loop
};
} |
BitPaw/BitFireEngine | GameCleaved/Source/CleavedGameSystem.cpp | #include "CleavedGameSystem.h"
#include <stdio.h>
#include <stdlib.h>
#include "../../SystemResource/Source/Time/StopWatch.h"
#include "../../SystemResource/Source/Shader/ShaderProgram.h"
#include "../../SystemResource/Source/Game/SkyBox.h"
#include "../../SystemResource/Source/Model/Model.h"
#include "../../SystemReso... |
BitPaw/BitFireEngine | SystemResource/Source/Container/LinkedListNode.hpp | <gh_stars>1-10
#pragma once
namespace BF
{
template<class T>
class LinkedListNode
{
public:
T Element;
LinkedListNode<T>* Next;
LinkedListNode(T element);
LinkedListNode(T element, LinkedListNode<T>* next);
};
template<class T>
inline LinkedListNode<T>::LinkedListNode(T element)
{
Element = elemen... |
BitPaw/BitFireEngine | SystemResource/Source/Container/Table.hpp | #pragma once
#include "List.hpp"
namespace BF
{
template<class T>
class Table
{
private:
List<List<T>> _data;
public:
Table()
{
}
Table(unsigned int width, unsigned height)
{
ReSize(width, height);
}
List<T>& operator[](unsigned int index)
{
return _data[index];
}
void ReSiz... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Shape/Triangle.cpp | <gh_stars>1-10
#include "Triangle.h"
BF::Triangle::Triangle()
{
Set(-0.5f, -0.5f, 0.5f, -0.5f, 0.0f, 0.5f);
}
BF::Triangle::Triangle(float xA, float yA, float xB, float yB, float xC, float yC)
{
Set(xA, yA, xB, yB, xC, yC);
}
BF::Triangle::Triangle(Vector2<float> a, Vector2<float> b, Vector2<float> c)
{
Set(a, ... |
BitPaw/BitFireEngine | SystemResource/Source/Image/TGA/TGA.cpp | #include "TGA.h"
#include <cassert>
#include "../../File/FileStream.h"
#define TGAFileIdentifier "TRUEVISION-XFILE."
#define TGAFileIdentifierSize 18u
BF::TGA::TGA()
{
ColorPaletteType = 0;
ImageDataType = TGAImageDataType::NoImageDataIsPresent;
OriginX = 0;
OriginY = 0;
Width = 0;
Height = 0;
PixelDepth = ... |
BitPaw/BitFireEngine | SystemResource/Source/Image/TIFF/TIFF.cpp | #include "TIFF.h"
#include "../../File/FileStream.h"
#define GIFFormatA {'I','I'}
#define GIFFormatB {'M','M'}
BF::TIFF::TIFF()
{
}
BF::FileActionResult BF::TIFF::Load(const wchar_t* filePath)
{
FileStream fileStream;
FileActionResult loadingResult = fileStream.ReadFromDisk(filePath);
if (loadingResult... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Padding.hpp | <filename>SystemResource/Source/Math/Geometry/Padding.hpp<gh_stars>1-10
#pragma once
namespace BF
{
template<class NumberType>
struct Padding
{
public:
NumberType Left;
NumberType Top;
NumberType Right;
NumberType Bottom;
Padding()
{
Set(0);
}
Padding(NumberType all)
{
Set(all);
}
P... |
BitPaw/BitFireEngine | SystemResource/Source/Model/OBJ/OBJ.cpp | <filename>SystemResource/Source/Model/OBJ/OBJ.cpp<gh_stars>1-10
#include "OBJ.h"
#include "../../File/File.h"
#include "../../File/FileStream.h"
#include "../../Container/AsciiString.h"
#include "../../File/Text.h"
#include <cassert>
#include <cstring>
BF::OBJ::OBJ()
{
Text::Copy(Name, "[N/A]", OBJNameSize);
... |
BitPaw/BitFireEngine | SystemResource/Source/Container/Queue.hpp | <reponame>BitPaw/BitFireEngine<gh_stars>1-10
#pragma once
#include "LinkedList.hpp"
namespace BF
{
template <class T>
class Queue
{
private:
LinkedList<T> _objectQueue;
public:
void Add(T element)
{
_objectQueue.Add(element);
}
unsigned int Size()
{
return _objectQueue.Size();
}
bool ... |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFMidline.cpp | #include "TTFMidline.h"
BF::TTFMidline BF::ConvertTTFMidline(unsigned char midline)
{
switch (midline)
{
case 0: return BF::TTFMidline::Any;
case 1: return BF::TTFMidline::NoFit;
case 2: return BF::TTFMidline::StandardTrimmed;
case 3: return BF::TTFMidline::StandardPointed;
case 4: return BF::TTFMidline::S... |
BitPaw/BitFireEngine | SystemResource/Source/Model/MeshIndexData.cpp | #include "MeshIndexData.h"
BF::MeshIndexData::MeshIndexData()
{
VertexPositionID = -1;
TexturePointID = -1;
NormalVectorID = -1;
}
BF::MeshIndexData::MeshIndexData(const unsigned int vertexPositionID, const unsigned int texturePointID, const unsigned int normalVectorID)
{
Set(vertexPositionID, texturePointID, nor... |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/DSIG/TTFDigitalSignatureRecord.cpp | #include "TTFDigitalSignatureRecord.h"
BF::TTFDigitalSignatureRecord::TTFDigitalSignatureRecord()
{
Format = 0;
Length = 0;
SignatureBlockOffset = 0;
}
|
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/CMAP/EncodingID.cpp | <reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Font/TTF/Chunks/CMAP/EncodingID.cpp
#include "EncodingID.h"
BF::EncodingID BF::ConvertEncodingID(PlatformID platformID, unsigned char encodingID)
{
switch (platformID)
{
case PlatformID::Unicode:
{
switch (encodingID)
{
case 0: return Encodi... |
BitPaw/BitFireEngine | SystemResource/Source/File/FileStream.cpp | <filename>SystemResource/Source/File/FileStream.cpp
#include "FileStream.h"
#include <cassert>
#include <string>
#include "File.h"
BF::FileStream::FileStream()
{
}
BF::FileStream::FileStream(size_t dataSize)
{
DataSize = dataSize;
Data = (Byte*)malloc(DataSize * sizeof(Byte));
}
BF::FileStream::~FileStream()
{
f... |
BitPaw/BitFireEngine | SystemResource/Source/Model/LinkedMesh.cpp | #include "LinkedMesh.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Network/IOSocket.cpp | #include "IOSocket.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SocketPackageIDFileBegin 'F'
#define SocketPackageIDFileEnd '/'
#include "IOSocketMessage.h"
#include "../ErrorCode.h"
#if defined(OSWindows)
#define EAI_ADDRFAMILY WSAHOST_NOT_FOUND
#endif
bool BF::IOSocket::IsCurrentlyUsed(... |
BitPaw/BitFireEngine | SystemResource/Source/Font/FNT/FNTCommonData.cpp | #include "FNTCommonData.h"
BF::FNTCommonData::FNTCommonData()
{
LineHeight = 95;
Base = 71;
ScaleWidth = 512;
ScaleHeight = 512;
AmountOfPages = 1;
Packed = false;
AlphaChanal = FNTChanalMode::InvalidMode;
RedChanal = FNTChanalMode::InvalidMode;
GreenChanal = FNTChanalMode::InvalidMode;
BlueChanal = FNTChan... |
BitPaw/BitFireEngine | SystemResource/Source/Service/HTTP/HTTPRequestMethod.cpp | #include "HTTPRequestMethod.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Types/UUID.cpp | <reponame>BitPaw/BitFireEngine
#include "UUID.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/CMAP/PlatformID.cpp | #include "PlatformID.h"
BF::PlatformID BF::ConvertPlatformID(unsigned char platformID)
{
switch (platformID)
{
case 0: return BF::PlatformID::Unicode;
case 1: return BF::PlatformID::Macintosh;
case 2: return BF::PlatformID::ISO;
case 3: return BF::PlatformID::Windows;
case 4: return BF::PlatformID::Custom;... |
BitPaw/BitFireEngine | SystemResource/Source/File/ParsingToken.cpp | <gh_stars>1-10
#include "ParsingToken.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/OS2/TTFCompatibility.cpp | #include "TTFCompatibility.h"
BF::TTFCompatibility::TTFCompatibility()
{
Version = 0;
xAvgCharWidth = 0;
usWeightClass = 0;
usWidthClass = 0;
fsType = 0;
ySubscriptXSize = 0;
ySubscriptYSize = 0;
ySubscriptXOffset = 0;
ySubscriptYOffset = 0;
ySuperscriptXSize = 0;
ySuperscriptYSize = 0;
ySuperscriptXOffset... |
BitPaw/BitFireEngine | SystemRender/Source/Window/Key.cpp | <filename>SystemRender/Source/Window/Key.cpp<gh_stars>1-10
#include "Key.h"
BF::Key BF::ConvertKeyToChar(int key)
{
switch (key)
{
default:
return Key::KeyUNKNOWN;
}
}
int BF::ConvertKeyToChar(Key key)
{
switch (key)
{
case BF::Key::KeySPACE:
break;
... |
BitPaw/BitFireEngine | SystemResource/Source/Container/List.hpp | <filename>SystemResource/Source/Container/List.hpp<gh_stars>1-10
#pragma once
#include <stdlib.h>
namespace BF
{
template <class T>
class List
{
private:
T* _content;
unsigned int _size;
public:
List()
{
_content = nullptr;
_size = 0;
}
List(const unsigned int size)
{
ReSize(size);
... |
BitPaw/BitFireEngine | SystemResource/Source/Image/BMP/BMPType.cpp | <filename>SystemResource/Source/Image/BMP/BMPType.cpp
#include "BMPType.h"
BF::BMPType BF::ConvertBMPType(unsigned char typeTag[2])
{
switch (typeTag[0])
{
case 'B':
{
switch (typeTag[1])
{
case 'A':
return BMPType::OS2StructBitmapArra... |
BitPaw/BitFireEngine | SystemResource/Source/Image/TGA/TGAImageDataType.cpp | #include "TGAImageDataType.h"
BF::TGAImageDataType BF::ConvertImageDataType(unsigned char id)
{
switch (id)
{
case 0u:
return TGAImageDataType::NoImageDataIsPresent;
case 1u:
return TGAImageDataType::UncompressedColorMapped;
case 2u:
return TGAImageDataType::UncompressedTrueColor;
case 3u:
ret... |
BitPaw/BitFireEngine | SystemResource/Source/Image/TGA/TGABitsPerPixel.cpp | <filename>SystemResource/Source/Image/TGA/TGABitsPerPixel.cpp
#include "TGABitsPerPixel.h"
BF::TGABitsPerPixel BF::ConvertPixelDepth(unsigned char pixelDepth)
{
switch (pixelDepth)
{
case 1u:
return TGABitsPerPixel::X1;
case 8u:
return TGABitsPerPixel::X8;
case 15u:
return TGABitsPerPixel::X15;
c... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Form/Cone.cpp | #include "Cone.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Model/Vertex.cpp | <gh_stars>1-10
#include "Vertex.h"
BF::Vertex::Vertex() : Vertex(Vector3<float>())
{
}
BF::Vertex::Vertex(Vector3<float> currentPosition) : Vertex(currentPosition, 0)
{
}
BF::Vertex::Vertex(Vector3<float> currentPosition, const unsigned int colorID)
{
CurrentPosition = currentPosition;
ColorID = colorID;
} |
BitPaw/BitFireEngine | SystemResource/Source/Algorithm/CRC32.cpp | #include "CRC32.h"
unsigned int BF::CRC32::Generate(const unsigned char* data, size_t length)
{
unsigned int r = 0xffffffffu;
unsigned int table[256] =
{
0u, 1996959894u, 3993919788u, 2567524794u, 124634137u, 1886057615u, 3915621685u, 2657392035u,
249268274u, 2044508324u, 3772115230... |
BitPaw/BitFireEngine | SystemResource/Source/Model/3DS/A3DS.cpp | #include "A3DS.h"
BF::FileActionResult BF::A3DS::Load(const wchar_t* filePath)
{
return FileActionResult::Successful;
}
BF::FileActionResult BF::A3DS::Save(const wchar_t* filePath)
{
return FileActionResult::Successful;
}
BF::FileActionResult BF::A3DS::ConvertTo(Model& model)
{
return FileActionResult::S... |
BitPaw/BitFireEngine | SystemRender/Source/Window/Window.cpp | #include "Window.h"
#include <stdio.h>
#include "../VideoConfig.h"
#include "../../../SystemResource/Source/Math/Interpolate.h"
BF::Dictionary<GLFWwindow*, BF::Window*> BF::Window::WindowLookup;
BF::Window::Window()
{
_window = nullptr;
_cursor = nullptr;
_montor = nullptr;
Width = 0;
Height = ... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/Sound.cpp | <reponame>BitPaw/BitFireEngine<gh_stars>1-10
#include "Sound.h"
#include "AAC/AAC.h"
#include "M4A/M4A.h"
#include "FLAC/FLAC.h"
#include "MID/MID.h"
#include "MP3/MP3.h"
#include "OGG/OGG.h"
#include "WAV/WAV.h"
#include "WMA/WMA.h"
#include "../File/File.h"
#include "../Container/AsciiString.h"
BF::Sound::Sound()
... |
BitPaw/BitFireEngine | TestQuadTree/TestQuadTree.cpp | <reponame>BitPaw/BitFireEngine
#include <iostream>
#include "../SystemResource/Source/Math/Math.h"
#include "../SystemResource/Source/Math/Geometry/Vector2.hpp"
#include "../SystemResource/Source/Container/QuadTree/QuadTree.hpp"
#include "../SystemResource/Source/Container/BitStreamHusk.h"
#include "../SystemResourc... |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFHeightX.cpp | <gh_stars>1-10
#include "TTFHeightX.h"
BF::TTFHeightX BF::ConvertTTFHeightX(unsigned char heightX)
{
switch (heightX)
{
case 0: return BF::TTFHeightX::Any;
case 1: return BF::TTFHeightX::NoFit;
case 2: return BF::TTFHeightX::ConstantSmall;
case 3: return BF::TTFHeightX::ConstantStandard;
case 4: return BF:... |
BitPaw/BitFireEngine | SystemResource/Source/Image/PNG/Chunk/PNGChunkType.cpp | <reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Image/PNG/Chunk/PNGChunkType.cpp
#include "PNGChunkType.h"
BF::PNGChunkType BF::ConvertChunkType(unsigned char chunk[4])
{
unsigned char byteA = chunk[0];
unsigned char byteB = chunk[1];
unsigned char byteC = chunk[2];
unsigned char byteD = ... |
BitPaw/BitFireEngine | SystemResource/Source/Compression/DEFLATE/DeflateBlock.cpp | #include "DeflateBlock.h"
#include "../../Container/BitStreamHusk.h"
#include "../HUFFMAN/HuffmanCodeType.h"
#include "../HUFFMAN/HuffmanSymbol.h"
#include "../HUFFMAN/HuffmanTree.h"
#include <stdio.h>
#include <cassert>
BF::DeflateBlock::DeflateBlock()
{
IsLastBlock = false;
EncodingMethod = DeflateEncodingMethod:... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Form/Icosahedron.cpp | <gh_stars>1-10
#include "Icosahedron.h"
|
BitPaw/BitFireEngine | SystemSound/Source/AudioConfig.cpp | #include "AudioConfig.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Font/FNT/FNTCharacter.cpp | <gh_stars>1-10
#include "FNTCharacter.h"
BF::FNTCharacter::FNTCharacter()
{
ID = -1;
Position[0] = -1;
Position[1] = -1;
Size[0] = -1;
Size[1] = -1;
Offset[0] = -1;
Offset[1] = -1;
XAdvance = -1;
Page = -1;
Chanal = -1;
}
BF::FNTCharacter::FNTCharacter(const unsigned char id, const float startPosition[2], ... |
BitPaw/BitFireEngine | BitFireEngine/Source/Resource/ResouceManager.cpp | <filename>BitFireEngine/Source/Resource/ResouceManager.cpp
#include "ResouceManager.h"
#include "../../../SystemResource/Source/Font/FNT/FNTPage.h"
#include "../../../SystemResource/Source/File/FileStream.h"
#include "../../../SystemResource/Source/Time/StopWatch.h"
#include "../../../SystemResource/Source/Game/SkyBox.... |
BitPaw/BitFireEngine | SystemResource/Source/Container/AsciiString.cpp | <reponame>BitPaw/BitFireEngine
#include "AsciiString.h"
#include <cassert>
#include <cstdarg>
BF::AsciiString::AsciiString()
{
_data = nullptr;
_size = 0;
_isReferenceToOtherString = false;
}
BF::AsciiString::AsciiString(const char* string)
{
_data = (char*)string;
_size = 0;
if (string == nullptr)
{
_isRe... |
BitPaw/BitFireEngine | SystemResource/Source/Encryption/ICypher.cpp | <reponame>BitPaw/BitFireEngine
#include "ICypher.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/KERN/TTFKerningSubtable.cpp | #include "TTFKerningSubtable.h"
BF::TTFKerningSubtable::TTFKerningSubtable()
{
Version = 0;
Length = 0;
Horizontal = 0;
Minimum = 0;
Cross = 0;
Override = 0;
Reserved = 0;
Format = 0;
}
void BF::TTFKerningSubtable::ParseCoverageValue(unsigned short coverage)
{
Horizontal = coverage & 0b0000000000000001;
Min... |
BitPaw/BitFireEngine | SystemResource/Source/Image/PNG/Chunk/PNGPrimaryChromatics.cpp | #include "PNGPrimaryChromatics.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Shader/ShaderProgram.cpp | #include "ShaderProgram.h"
BF::ShaderProgram::ShaderProgram()
{
ID = -1;
}
void BF::ShaderProgram::AddShader(const wchar_t* vertexShaderPath, const wchar_t* fragmentShaderFilePath)
{
ShaderList[0] = Shader(ShaderType::Vertex, vertexShaderPath);
ShaderList[1] = Shader(ShaderType::Fragment, fragmentShaderFi... |
BitPaw/BitFireEngine | SystemResource/Source/Compression/DEFLATE/DeflateEncodingMethod.cpp | <reponame>BitPaw/BitFireEngine
#include "DeflateEncodingMethod.h"
BF::DeflateEncodingMethod BF::ConvertDeflateEncodingMethod(unsigned char deflateEncodingMethod)
{
switch (deflateEncodingMethod)
{
case 0b00:
return DeflateEncodingMethod::LiteralRaw;
case 0b01:
return DeflateEncodingMethod::HuffmanStatic;
... |
BitPaw/BitFireEngine | SystemResource/Source/Font/FNT/FNTInfo.cpp | <filename>SystemResource/Source/Font/FNT/FNTInfo.cpp
#include "FNTInfo.h"
BF::FNTInfo::FNTInfo()
{
Name[0] = 0;
Size = 70;
Bold = false;
Italic = false;
CharSet[0] = 0;
Unicode = false;
StretchH = 100;
Smooth = 1;
Supersampling = 1;
CharacterPadding[0] = 0;
CharacterPadding[1] = 0;
CharacterPadding[2] = 0;... |
BitPaw/BitFireEngine | SystemResource/Source/Algorithm/Adler32.cpp | <reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Algorithm/Adler32.cpp
#include "Adler32.h"
BF::Adler32::Adler32()
{
Value = 0;
IsValid = false;
}
BF::Adler32::Adler32(unsigned int value)
{
Value = value;
IsValid = false;
}
unsigned int BF::Adler32::Check(unsigned char* data, size_t leng... |
BitPaw/BitFireEngine | SystemResource/Source/Compression/ZLIB/ZLIBCompressionMethod.cpp | #include "ZLIBCompressionMethod.h"
BF::ZLIBCompressionMethod BF::ConvertCompressionMethod(unsigned char compressionMethod)
{
switch (compressionMethod)
{
case 8u:
return BF::ZLIBCompressionMethod::Deflate;
case 15u:
return BF::ZLIBCompressionMethod::Reserved;
d... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Vector4.hpp | <reponame>BitPaw/BitFireEngine<gh_stars>1-10
#pragma once
namespace BF
{
template<class NumberType>
struct Vector4
{
public:
NumberType X;
NumberType Y;
NumberType Z;
NumberType W;
Vector4()
{
X = 0;
Y = 0;
Z = 0;
W = 0;
}
Vector4(NumberType x, NumberType y, NumberType z, NumberType... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Shape/Circle.cpp | #include "Circle.h"
BF::Circle::Circle()
{
Set(1);
}
BF::Circle::Circle(float radius)
{
Set(radius);
}
BF::Circle::Circle(float midPointx, float midPointy, float cornerPointx, float cornerPointy)
{
Set(midPointx, midPointy, cornerPointx, cornerPointy);
}
BF::Circle::Circle(Vector2<float> midPoint, Vector2<float>... |
BitPaw/BitFireEngine | SystemResource/Source/Algorithm/ISBN.cpp | #include "ISBN.h"
bool BF::ISBN::IsValid()
{
// Splitt
// Zahlen
// 10 * []
// 1 * x;
return false;
}
|
BitPaw/BitFireEngine | SystemResource/Source/Container/DictionaryStatic.hpp | #pragma once
#include <cstddef>
namespace BF
{
template <class Key, class Value, size_t FullSize>
struct DictionaryStatic
{
private:
Key KeyList[FullSize];
Value ValueList[FullSize];
size_t Size = FullSize;
public:/*
DictionaryStatic()
{
//KeyList = nullptr;
//ValueList = nullptr;
Size = 0;... |
BitPaw/BitFireEngine | SystemResource/Source/Image/PNG/Chunk/PNGPaletteHistogram.cpp | <gh_stars>1-10
#include "PNGPaletteHistogram.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Container/BitStreamHusk.cpp | <gh_stars>1-10
#include "BitStreamHusk.h"
#include <stdio.h>
#include <cassert>
BF::BitStreamHusk::BitStreamHusk()
{
RePosition(nullptr, 0);
}
BF::BitStreamHusk::BitStreamHusk(unsigned char* startAdress, unsigned int dataLengh)
{
RePosition(startAdress, dataLengh);
}
BF::BitStreamHusk::BitStreamHusk(unsigned char*... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MP3/MP3MPEGVersion.hpp | <gh_stars>1-10
#pragma once
namespace BF
{
enum class MP3MPEGVersion
{
Reserved,
MPEGVersion1,
MPEGVersion2,
MPEGVersion25
};
} |
BitPaw/BitFireEngine | SystemResource/Source/File/ProgramExecuteInfo.cpp | #include "ProgramExecuteInfo.h"
BF::ProgramExecuteInfo::ProgramExecuteInfo()
{
for (size_t i = 0; i < sizeof(FilePath); i++)
{
FilePath[i] = '#';
}
CallBack = nullptr;
ParameterList = nullptr;
ParameterListSize = 0;
} |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Shape/Square.cpp | #include "Square.h"
BF::Square::Square()
{
Set(1);
}
BF::Square::Square(float sideLength)
{
Set(sideLength);
}
BF::Square::Square(Vector2<float> size)
{
Set(size);
}
float BF::Square::SideLength()
{
return Math::Absolute(PointA.X - PointB.X);
}
float BF::Square::SurfaceArea()
{
return Math::PowerOfTwo(SideLe... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/MP3/MP3ChannelMode.hpp | <reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Sound/MP3/MP3ChannelMode.hpp
#pragma once
namespace BF
{
enum class MP3ChannelMode
{
Stereo,
JointStereo,
DualChannel,
SingleChannel
};
} |
BitPaw/BitFireEngine | SystemResource/Source/Image/JPEG/JPEGFrameComponent.cpp | #include "JPEGFrameComponent.h"
BF::JPEGFrameComponent::JPEGFrameComponent()
{
ID = 0;
Width = 0;
Height = 0;
Key = 0;
} |
BitPaw/BitFireEngine | SystemResource/Source/Level/Level.cpp | <reponame>BitPaw/BitFireEngine<filename>SystemResource/Source/Level/Level.cpp
#include "Level.h"
#include "../File/File.h"
BF::Level::Level()
{
ID = -1;
}
bool BF::Level::IsLevelFile(const wchar_t* filePath)
{
File file(filePath);
return file.ExtensionEquals("lev");
} |
BitPaw/BitFireEngine | SystemResource/Source/Font/TTF/Chunks/OS2/Panose/TTFContrast.cpp | #include "TTFContrast.h"
BF::TTFContrast BF::ConvertTTFContrast(unsigned char contrast)
{
switch (contrast)
{
case 0: return BF::TTFContrast::Any;
case 1: return BF::TTFContrast::NoFit;
case 2: return BF::TTFContrast::None;
case 3: return BF::TTFContrast::VeryLow;
case 4: return BF::TTFContrast::Low;
cas... |
BitPaw/BitFireEngine | SystemResource/Source/Sound/WMA/WMA.cpp | #include "WMA.h"
#include "../../File/FileStream.h"
BF::FileActionResult BF::WMA::Load(const wchar_t* filePath)
{
FileStream file;
FileActionResult loadingResult = file.ReadFromDisk(filePath);
if (loadingResult != FileActionResult::Successful)
{
return loadingResult;
}
return FileActionResult::Successful;
}
... |
BitPaw/BitFireEngine | GameZEE/Source/ZEEGameSystem.cpp | #include "ZEEGameSystem.h"
#include <stdio.h>
#include <stdlib.h>
#include "../../BitFireEngine/Source/UI/UIText.h"
#include "../../SystemResource/Source/Time/StopWatch.h"
#include "../../SystemResource/Source/Shader/ShaderProgram.h"
#include "../../SystemResource/Source/Game/SkyBox.h"
#include "../../SystemResource/So... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Physic/CollisionListener.cpp | #include "CollisionListener.h"
|
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Vector3.hpp | #pragma once
#include "../Math.h"
namespace BF
{
template <class NumberType>
struct Vector3
{
public:
NumberType X;
NumberType Y;
NumberType Z;
Vector3()
{
X = 0;
Y = 0;
Z = 0;
}
Vector3(NumberType x, NumberType y, NumberType z)
{
X = x;
Y = y;
Z = z;
}
void operator+=(Nu... |
BitPaw/BitFireEngine | SystemResource/Source/Math/Geometry/Form/Cylinder.cpp | #include "Cylinder.h"
|
BitPaw/BitFireEngine | SystemRender/Source/Device/KeyBoard/KeyBoard.cpp | <reponame>BitPaw/BitFireEngine
#include "KeyBoard.h"
BF::KeyBoard::KeyBoard()
{
Reset();
}
void BF::KeyBoard::IncrementButtonTick()
{
A.IncrementIfAlreadyPressed();
B.IncrementIfAlreadyPressed();
C.IncrementIfAlreadyPressed();
D.IncrementIfAlreadyPressed();
E.IncrementIfAlreadyPressed();
F.IncrementIfAlreadyPr... |
BitPaw/BitFireEngine | SystemResource/Source/Shader/Shader.cpp | <reponame>BitPaw/BitFireEngine
#include "Shader.h"
#include "../File/FileStream.h"
#include <string>
BF::Shader::Shader()
{
ID = -1;
Type = ShaderType::Unkown;
Content = 0;
ContentSize = 0;
}
BF::Shader::Shader(ShaderType type, const wchar_t* filePath)
{
ID = -1;
Type = type;
Content = 0;
Cont... |
BitPaw/BitFireEngine | SystemResource/Source/File/Program.cpp | <gh_stars>1-10
#include "Program.h"
#include "../OSDefine.h"
#include "../ErrorCode.h"
#include <stdio.h>
#include <thread>
#if defined(OSUnix)
#include <unistd.h>
#include <spawn.h>
#include <wait.h>
#define ExecuteProgram spawnv
#elif defined(OSWindows)
#include <windows.h>
#include <process.h>
#define ExecuteProgr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.