Skip to content

Commit

Permalink
Add LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyAnsel committed Jan 11, 2015
1 parent cbf22ed commit 460e071
Show file tree
Hide file tree
Showing 54 changed files with 179 additions and 2 deletions.
21 changes: 21 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 J�r�my Ansel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions impl11/ddraw/BackbufferSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "BackbufferSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/BackbufferSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class BackbufferSurface : public IDirectDrawSurface
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/ComPtr.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

template<class T>
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DepthSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "DepthSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DepthSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class DepthSurface : public IDirectDrawSurface
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DeviceResources.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"

Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DeviceResources.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class PrimarySurface;
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3D.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3D.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3D.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class Direct3D : public IDirect3D
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DDevice.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3DDevice.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DDevice.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class RenderStates;
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DExecuteBuffer.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3DExecuteBuffer.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DExecuteBuffer.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class Direct3DExecuteBuffer : public IDirect3DExecuteBuffer
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DTexture.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3DTexture.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DTexture.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class TextureSurface;
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DViewport.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3DViewport.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/Direct3DViewport.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class Direct3DViewport : public IDirect3DViewport3
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DirectDraw.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "DirectDraw.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DirectDraw.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class DirectDraw : public IDirectDraw
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DirectDraw2.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "DirectDraw2.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/DirectDraw2.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class DirectDraw2 : public IDirectDraw2
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/ExecuteBufferDumper.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "Direct3DExecuteBuffer.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/ExecuteBufferDumper.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#if LOGGER
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/FrontbufferSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "FrontbufferSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/FrontbufferSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class FrontbufferSurface : public IDirectDrawSurface
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/MipmapSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "MipmapSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/MipmapSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class MipmapSurface : public IDirectDrawSurface
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/OffscreenSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "OffscreenSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/OffscreenSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class OffscreenSurface : public IDirectDrawSurface
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/PrimarySurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "PrimarySurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/PrimarySurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class BackbufferSurface;
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/TextureSurface.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "TextureSurface.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/TextureSurface.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class MipmapSurface;
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/common.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#include "targetver.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/config.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "config.h"

#include <string>
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/config.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

class Config
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/ddraw.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "DeviceResources.h"
#include "DirectDraw.h"
Expand Down
Binary file modified impl11/ddraw/ddraw.rc
Binary file not shown.
3 changes: 3 additions & 0 deletions impl11/ddraw/dllmain.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "targetver.h"

#define WIN32_LEAN_AND_MEAN
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/logger.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "logger.h"

#if LOGGER
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/logger.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#ifdef _DEBUG
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/targetver.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#include <sdkddkver.h>
Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/utils.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#include "common.h"
#include "utils.h"

Expand Down
3 changes: 3 additions & 0 deletions impl11/ddraw/utils.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

std::string wchar_tostring(LPCWSTR text);
Expand Down
3 changes: 3 additions & 0 deletions impl11/shaders/MainPixelShader.hlsl
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt


Texture2D texture0 : register(t0);
SamplerState sampler0 : register(s0);
Expand Down
3 changes: 3 additions & 0 deletions impl11/shaders/MainVertexShader.hlsl
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt


struct VertexShaderInput
{
Expand Down
3 changes: 3 additions & 0 deletions impl11/shaders/PixelShaderSolid.hlsl
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt


Texture2D texture0 : register(t0);
SamplerState sampler0 : register(s0);
Expand Down
3 changes: 3 additions & 0 deletions impl11/shaders/PixelShaderTexture.hlsl
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt


Texture2D texture0 : register(t0);
SamplerState sampler0 : register(s0);
Expand Down
3 changes: 3 additions & 0 deletions impl11/shaders/VertexShader.hlsl
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt


cbuffer ConstantBuffer : register(b0)
{
Expand Down
3 changes: 3 additions & 0 deletions impl11/tests/ComPtr.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

template<class T>
Expand Down
3 changes: 3 additions & 0 deletions impl11/tests/main.cpp
@@ -1,3 +1,6 @@
// Copyright (c) 2014 Jérémy Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#include "targetver.h"
Expand Down
3 changes: 3 additions & 0 deletions impl11/tests/targetver.h
@@ -1,3 +1,6 @@
// Copyright (c) 2014 J�r�my Ansel
// Licensed under the MIT license. See LICENSE.txt

#pragma once

#include <winsdkver.h>
Expand Down

0 comments on commit 460e071

Please sign in to comment.