FACTOID # 3: South Carolina has the highest rate of violent crimes and aggravated assaults per capita among US states.
 
 Home   Encyclopedia   Statistics   States A-Z   Flags   Maps   FAQ   About 
   
 
WHAT'S NEW
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Cobra (programming language)

Cobra is a new programming language developed by Graham Kennedy at the Squeaky Duck Design Company (http://www.squeakyduck.co.uk). It is a rapid application development language, designed primarily for easy creation of computer game software but also includes tools that allow for application development. The syntax is based on the Pascal programming language but allows for a BASIC-like syntax to be used as well. For ultimate speed Cobra also allows the inclusion of Assembly Language routines - although this is only a recent addition. // [edit] History Application Development refers to the developing of programming applications and differs from programming itself in that it has a higher level of responsibility, including for requirement capturing and testing. ... Pascal is an imperative computer programming language, developed in 1970 by Niklaus Wirth as a language particularly suitable for structured programming. ... Screenshot of Atari BASIC, an early BASIC language for small computers. ...

An early screenshot of the Cobra IDE
An early screenshot of the Cobra IDE

Contents

Image File history File links Size of this preview: 774 × 600 pixel Image in higher resolution (1280 × 992 pixel, file size: 177 KB, MIME type: image/jpeg) A screenshot of the Idigicon Cobra IDE. Cobra is a RAD programming language in development by Graham Kennedy. ... Image File history File links Size of this preview: 774 × 600 pixel Image in higher resolution (1280 × 992 pixel, file size: 177 KB, MIME type: image/jpeg) A screenshot of the Idigicon Cobra IDE. Cobra is a RAD programming language in development by Graham Kennedy. ...

Features

Both a 2D and 3D engine are implemented in the Cobra programming language. Each works independently of the other but both can be used simultaneously.


Cobra3D

Cobra3D is the current name for Cobra's 3D engine component. It utilizes OpenGL, and aims to take advantage of OpenGL's power and portability. In addition to basic 3D capabilities simliar to other 3D engines, to simplify and speed up development of 3D games, Cobra's 3D Engine comes included with 3D special effects such as shadows, blurring, cel shading, and particles. OpenGL (Open Graphics Library) is a standard specification defining a cross-language cross-platform API for writing applications that produce 3D computer graphics (and 2D computer graphics as well). ... Categories: Computer and video game stubs | Computer graphics ... For more background on this topic, see game physics. ...


Pure2D

Cobra's "Pure2D" library works independently of the 3D engine and actually requires no 3D acceleration or runtime libraries whatsoever. Cobra supports effects that are usually only feasible by using 3D hardware. Among these are realtime rotations, scaling, and free-form transforming. In addition, Cobra supports realtime blend modes for sprites, and alpha blending for its drawing commands (which include basic shapes).


Cobra2D

Cobra also has a 2D hardware accelerated version of Pure2D which has just been released.


Other

Other features include:

  • Support for several audio file formats, and CD playback
  • Expandibility through modules and DLL's
  • Ability to render AVI movies and save with virtually any available codec
  • Easy creation of Windows® screensavers
  • Custom loading routines
  • Built in GUI commands
  • Internet support through "CobraNet"
  • Built in frame limiting
  • Multiple joystick support

To meet Wikipedias quality standards, this article or section may require cleanup. ... In computer science, a library is a collection of subprograms used to develop software. ... AVI, an acronym for Audio Video Interleave, is a multimedia container format introduced by Microsoft in November 1992, as part of the Video for Windows technology. ... GUI can refer to the following: GUI is short for graphical user interface, a term used to describe a type of interface in computing. ...

Code

The following is an example of Cobra source code. It loads a 3D object and rotates it with full planar dynamic shadows.

 program uses cobra3d, keyset var cam, light, light2 : element buggy1 : element ground : element begin openscreen(800, 600) cam = createcamera() usecamera(cam) positionentity(cam, 0, 15, 50) EntitySetAttribute(cam, 'DepthOfView', 1100) EntitySetAttribute(cam, 'FocalLength', 120) light = createlight(cam) light2 = createlight() positionentity(light2, 40, 40, 0) ground = createshadowplane() rotateentity(ground, 90, 0, 0) buggy1 = loadmesh('buggy3dsbuggy2.3ds') scaleentity(buggy1, 0.1, 0.1, 0.1) EntitySetAttribute(ground,'width',700) EntitySetAttribute(ground,'height',700) EntitySetAttribute(ground,'xtiles',50); EntitySetAttribute(ground,'ytiles',50); setshadowlight(ground, light2) setshadowobject(ground, buggy1) setcameratarget(cam, buggy1) while not keydown(vk_escape) turnentity(buggy1, 0, 0.05, 0) flip wend end 

Cobra LE

At the end of August 2006, Idigicon and Graham Kennedy announced that Cobra would be re-targeted to the education market, complementing Idigicon's educational software and support for UK educational initiatives. Kennedy has revealed that this version, called Cobra Learning Environment will be the only version published by Idigicon.


The latest version is published by the Squeaky Duck Design Company (http://www.squeakyduck.co.uk) and builds upon the foundations of the education product.

See also

Blitz BASIC is a compiler for the BASIC programming language. ... Object Pascal is an object oriented derivative of Pascal mostly known as the primary programming language of Borland Delphi. ... Pascal is an imperative computer programming language, developed in 1970 by Niklaus Wirth as a language particularly suitable for structured programming. ...

External links


  Results from FactBites:
 
Encyclopedia4U - Programming language - Encyclopedia Article (2055 words)
Most languages that are widely used, or have been used for a considerable period of time, have standardization bodies that meet regularly to create and publish formal definitions of the language, and discuss extending or supplementing the already extant definitions.
Type-inferred languages superficially treat all data as not having a type, but actually do sophisticated analysis of the way the program uses the data to determine which elementary operations are performed on the data, and therefore deduce what type the variables have at compile-time.
Programming languages are not error tolerant; however, the burden of recognising and using the special vocabulary is reduced by help messages generated by the programming language implementation.
  More results at FactBites »

 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m