Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
QuestionDirectX (sprite vs triangle strip/fan) Pin
Amar Chaudhary16-Nov-06 10:54
Amar Chaudhary16-Nov-06 10:54 
AnswerRe: DirectX (sprite vs triangle strip/fan) Pin
Judah Gabriel Himango16-Nov-06 11:28
sponsorJudah Gabriel Himango16-Nov-06 11:28 
GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Amar Chaudhary16-Nov-06 11:40
Amar Chaudhary16-Nov-06 11:40 
AnswerRe: DirectX (sprite vs triangle strip/fan) Pin
Guffa16-Nov-06 13:31
Guffa16-Nov-06 13:31 
GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Amar Chaudhary16-Nov-06 15:45
Amar Chaudhary16-Nov-06 15:45 
GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Judah Gabriel Himango16-Nov-06 16:00
sponsorJudah Gabriel Himango16-Nov-06 16:00 
GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Amar Chaudhary16-Nov-06 16:07
Amar Chaudhary16-Nov-06 16:07 
GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Judah Gabriel Himango16-Nov-06 16:18
sponsorJudah Gabriel Himango16-Nov-06 16:18 
Yeah. Typically if you need shared variables, you should initialize it in one place, then pass it down to all descendant classes by passing the variable down into the class constructors.

Alternately, you can make the variable static if you need only 1 instance, but this often leads to rigid designs; static is really meant for classes where the functions don't rely on any state and are completely independent of each other.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: God-as-Judge, God-as-Forgiver
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: DirectX (sprite vs triangle strip/fan) Pin
Amar Chaudhary16-Nov-06 16:33
Amar Chaudhary16-Nov-06 16:33 
QuestionHow to Disable Scroll Pin
Iridania16-Nov-06 10:26
Iridania16-Nov-06 10:26 
AnswerRe: How to Disable Scroll Pin
Rey999917-Nov-06 4:26
Rey999917-Nov-06 4:26 
QuestionRe: How to Disable Scroll [modified] Pin
Iridania18-Nov-06 3:35
Iridania18-Nov-06 3:35 
QuestionEasy xml file save question Pin
lsugirljte16-Nov-06 9:52
lsugirljte16-Nov-06 9:52 
AnswerRe: Easy xml file save question Pin
Judah Gabriel Himango16-Nov-06 11:29
sponsorJudah Gabriel Himango16-Nov-06 11:29 
GeneralRe: Easy xml file save question Pin
lsugirljte16-Nov-06 11:34
lsugirljte16-Nov-06 11:34 
GeneralRe: Easy xml file save question Pin
Judah Gabriel Himango16-Nov-06 11:40
sponsorJudah Gabriel Himango16-Nov-06 11:40 
QuestionRe: Easy xml file save question Pin
lsugirljte16-Nov-06 12:15
lsugirljte16-Nov-06 12:15 
AnswerRe: Easy xml file save question Pin
Judah Gabriel Himango16-Nov-06 12:44
sponsorJudah Gabriel Himango16-Nov-06 12:44 
GeneralRe: Easy xml file save question Pin
lsugirljte17-Nov-06 3:25
lsugirljte17-Nov-06 3:25 
AnswerRe: Easy xml file save question Pin
lsugirljte17-Nov-06 4:19
lsugirljte17-Nov-06 4:19 
GeneralRe: Easy xml file save question Pin
Judah Gabriel Himango17-Nov-06 4:45
sponsorJudah Gabriel Himango17-Nov-06 4:45 
QuestionDataGridView Focus Pin
Drew McGhie16-Nov-06 9:28
Drew McGhie16-Nov-06 9:28 
QuestionProblem with Windows Service Pin
vic0216-Nov-06 9:27
vic0216-Nov-06 9:27 
AnswerRe: Problem with Windows Service Pin
Judah Gabriel Himango16-Nov-06 11:34
sponsorJudah Gabriel Himango16-Nov-06 11:34 
GeneralRe: Problem with Windows Service Pin
vic0217-Nov-06 3:14
vic0217-Nov-06 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.