Alientech 0.01
An extendable game engine
C:/Alientech/AlienSight/main.cpp File Reference
#include <windows.h>
#include <windowsx.h>
#include <d3d10.h>
#include <d3dx10.h>

Go to the source code of this file.

Classes

struct  SimpleVertex

Functions

void initD3D (HWND hWnd)
void render_frame (void)
void cleanD3D (void)
LRESULT CALLBACK WindowProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

Variables

ID3D10Device * device
ID3D10RenderTargetView * rtv
IDXGISwapChain * swapchain
D3D10_INPUT_ELEMENT_DESC layout []

Function Documentation

void cleanD3D ( void  )

Definition at line 175 of file main.cpp.

void initD3D ( HWND  hWnd)

Definition at line 113 of file main.cpp.

void render_frame ( void  )

Definition at line 162 of file main.cpp.

LRESULT CALLBACK WindowProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 97 of file main.cpp.

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)

Definition at line 35 of file main.cpp.


Variable Documentation

ID3D10Device* device

Definition at line 12 of file main.cpp.

D3D10_INPUT_ELEMENT_DESC layout[]
Initial value:
{
    { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 },  
}

Definition at line 29 of file main.cpp.

ID3D10RenderTargetView* rtv

Definition at line 13 of file main.cpp.

IDXGISwapChain* swapchain

Definition at line 14 of file main.cpp.