Controlling Camera and Line of Sight in OpenGL

Camera controlling is essential in 3D viewing. OpenGL provides a function gluLookAt() for this purpose. The syntax of the ... era around the view vector axis until the top of the camera matches the specified up direction as closely as possible.

Conversion of decimal to roman using C

In previous post you learnt to use for loop and do…while loop in program with the example for printing prime numbers. In ... 97: 98: 99: return 0; 100: } 101: Output (adsbygoogle = window.adsbygoogle || []).push({});

Lightning in OpenGL with Material Effect

This is second tutorial on Lightning in OpenGL. In this tutorial, I will discuss about producing Material Effect in OpenGL. ... eyboard); glutMainLoop(); return 0; } Output (adsbygoogle = window.adsbygoogle || []).push({});

Bezier Curves and Bezier Surfaces generation with C/C++ in Code::Blocks

Brief Theory of Bezier Curve In order to draw curvy surface we implement Bezier curve algorithm. In drawing Bezier we f ... Output

String To Integer and Integer to String Conversion in C

In modern languages like Java, C# etc., there is a provision of function to handle String to Integer and Integer to Strin ... ing(n/10);     string[k] = n%10 +'0'; } You must add a end of line ‘\0’ character at the end of the converted string.

How to disable the close button of console using C

The code for making the close button  disabled is given below. It disables the close button and hence user cannot close con ... // if found, remove that menu item if (j >= 0) RemoveMenu(sm, j, MF_BYPOSITION); return 0; }

PHP Tutorial: The Operational Trail

In this section, I discuss about the operation of server to process PHP code. (adsbygoogle = window.adsbygoogle ... es the data to/from database At last server returns pure HTML code to the browser which browser can easily understand.

Installation of PHP on Windows Platform

To run PHP code and see the output on Browser, you need following things (adsbygoogle = window.adsbygoogle || []).p ... next tutorial I will show you how to use WAMP on windows. (adsbygoogle = window.adsbygoogle || []).push({});

What is PHP?

PHP, which stands for “PHP: Hypertext Preprocessor” is a widely-used Open Source general purpose scripting language that is ... protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others.            

Different Data Types in PHP

PHP supports wide range of Data Types. It supports eight different primitive data types: four scalar types (boolean, in ... st-letter:     Uppercase Words:     Length:     Trim: (adsbygoogle = window.adsbygoogle || []).push({});

PHP Tutorial: Getting user input in PHP using HTML form

There are basically three ways in PHP to get user input. They are Using HTML Form Using URL values links Using ... and similar is the case for password. So lets make another file retrieve.php to print the values of username and password.

How to make a digital clock using C

The following code creates a digital clock using a 1 sec. delay. provides various functions to delay the time. (ad ... (":%2d",sec); } } } } int main() { showClock(2,4,7,4); return 0; } Output:

How to do texture mapping in opengl a sample example

How to Do Texture Mapping in OpenGl One of the most important things in computer graphics is to know how to do texture mappi ... lipping path, you should also make sure to use the Create Noise tool in order to get rid of any unwanted background noise.

C++ Tutorial: This pointer and static members

This Pointer The keyword this represents a pointer to the object whose member function is being executed. It is a point ... to an object pointer and these functions in fact are not members of any object but direct members of the class.

C++ Tutorial: Namespace in C++

A program includes many identifiers defined in different scopes. Sometimes a variable of one scope will “overlap” (i.e., ... mbers must be qualified with the namespace name (unless the member is being used inside the nested namespace).  

Implementing Bresenham’s Line Drawing Algorithm in C/C++

Bresenham’s Line Drawing Algorithm is an accurate and efficient raster line-generating algorithm developed by Bresenham. ... /* return no error to the operating system */ return 0; } The output generated by above program is 

Data structure implementing tree sort in c

Implementing Tree Sort Algorithms Implementing tree sorted data structures has become a very important thing, when it comes ... will still work. Other times, you might need to upgrade your equipment, and that can make things a little more difficult.

C++ Tutorial: Some Lab assignments on Objects and Classes

Question: Write a simple program that convert the temperature in degree Celsius to degree Fahrenheit  and vice versa usin ... ara(eid,bons,overt,yr); } cout\n REPORT \n"; for(int i = 0;i e[i].displayreport(); } return 0; }

Data Structure: How to implement Straight Insertion Sort in C++?

An insertion sort is that which sort a record of data by inserting records into an existing sorted file. The list is divide ... rtion sort (adsbygoogle = window.adsbygoogle || []).push({}); Efficiency of Straight Insertion sort is O(n^2)

C++ Tutorial: Why Virtual Functions are needed?

The following example illustrates this concept of why virtual function is necessary. 1: #include 2: 3: using n ... lass Animal From Derived class Cow From Derived class Dog (adsbygoogle = window.adsbygoogle || []).push({});