Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c - How do I fill the screen with a rectangle in OpenGL ortho mode? -


i have single 640x480 texture needs fill screen. far, can make work square texture, not rectangular one.

glviewport(0, 0, display->w, display->h);  glmatrixmode(gl_projection); glloadidentity();  double aspectratio = (double)display->w / (double)display->h;  if (display->w <= display->h)     glortho(-1, 1, -1 / aspectratio, 1 / aspectratio, -1, 1); else     glortho(-1 * aspectratio, 1 * aspectratio, -1, 1, -1, 1);  glmatrixmode(gl_modelview); glloadidentity(); 

what modifications need make fit texture screen, regardless of aspect ratio?

this may have relevance.

tiling texture bmp file texture onto rectangle in opengl?

you may wish consider arb extension texture rectangle alternative approach (assuming glteximage2d?) http://glprogramming.com/red/chapter09.html


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -