ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
DXFramework - Wikipedia, the free encyclopedia

DXFramework

From Wikipedia, the free encyclopedia

This article is about a project hosted on SourceForge.Net. For more information, please visit the project home page.

DXFramework is a simple, illustrative, general purpose 2D (and 3D) computer game engine for Microsoft Visual Studio using Microsoft’s DirectX technology, version 9.0c.

DXFramework is currently running version 1.0. It has 3 revisions for C++ available for download on their website, as well as a XNA studio express version. It requires Microsoft Visual Studio 2005(or express), the latest DirectX SDK, the Windows SDK, as well as a Python Interpreter. All of these are available from the DXFramework Wiki.

The original version of DXFramework was written by Corey Johnson and Jonathan Voigt. The DXFramework 0.9.4 rewrite was completed by Jonathan Voigt. DXFramework is currently maintained and managed by Jonathan Voigt at the University of Michigan.

It has been used at the University of Michigan since 2002 and University of Massachusetts Dartmouth since 2008 with success in game design classes focusing on arcade style games.

[edit] Examples

Adding a sprite into a software being made using DXFramework.

dxf::Sprite varname;

Written in the header file of a class this declares the variable “tank” as a sprite.

varname.CreateFromFile(L"name.ext");

This is written into the .cpp file that the header is imported into; it will attach an image onto the sprite variable to be rendered when the program runs.

ClassName red;

Add this into play.h(default in a new game) and “red” can then call any of the necessary Tank functions it would need to load, unload, render, or update.



Add a new class to be used in a game; this is where the sprites are controlled.

void name::Load() {
//This is where sprite images are loaded and initial values are declared.  
}
 
void name::Render() {
//This is where the sprite(s) of “name” are rendered, for 2D games the 
//sprite variables would be called with .Render2D().
}
 
void name::Unload() {
//This is where the sprites are unloaded from the program, this is called by adding //.Unload() to the sprite variable.  
//Removing them without unloading can cause many problems in a program.
}
 
void name::Update() {
//This is where the sprite rendering coordinates can be changed, color changing, or other //methods can be called to edit the sprite such as rotating the sprite.
}

A “name” object would then added into “play.h” to be used to call any “name” functions or unprotected variables.

[edit] License

DXFramework is licensed under a BSD-style license.

[edit] External links


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -