graphics api java

By admin  

graphics api java
OpenGL or Direct3D?

I’m interested in learning a little bit about 3D game development. I’m comfortable with C++, C, a little bit of Java, as well as the 3D math involved, but my only problem is choosing which 3D Graphics API to work with. I’m an absolute beginner to this stuff, I’ve created a few windows applications, but nothing dealing with 3D animation. The only thing I really know is that Direct3D is part of Microsoft’s DirectX API, and thus it’s limited to PC, while OpenGL is cross platform.

I’ve created my first OpenGL application which was just a red rectangle with a black background. Nothing complicated, other than the fact that it took me 2hrs to figure out lol.

Anyway, my question is which one should I go with? What are the pros and cons of each. Where can I go to get some info about both API’s other than GameDev.net?

thanks.

Hi there

If you are asking which tool to select for game development then the answer is definitely DirectX it has lots and lots of stuff related to the game development including, sound, media, 3D, networking etc etc, on the other hand OpenGL is purely related to 3D programming which is an Ideal case for development of CAD applications. In my opinion you must be a master of both OpenGL and DirectX also XNA as well, but the question is where to start your game development dream. I reckon to start from OpenGL test your 3D math skills in OpenGL environment which is the best platform to learn 3D. When you feel comfortable with 3D means you are ready to go with DirectX and then spend most of your time in learning other aspects of game development.

From your foundation level to expert following resources can be helpfull for you.
http://nehe.gamedev.net a good place to learn OpenGL.

And for game programming Andre LaMothe is the most famous writer of game programming books, he has spent his life in game development. His book “Tricks of the windows Game Programming Gurus” was one of his most famous books. Also his book “The Black art of game console design” is famous now a days.

I wish you enjoy your time in game programming.

graphics api javagraphics api java
graphics api java

Dot Net Development: Accomplish Large Functions through Class Library

The .NET Framework includes a set of standard class libraries. The class library is set in terms of a hierarchy of namespaces. Most of the worked up in APIs are part of either System or Microsoft namespaces. These class libraries execute a large number of general functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, among others. The .NET class libraries are obtainable to all .NET languages. The .NET Framework class library is alienated into two parts: the Base Class Library and the Framework Class Library.

Base Class Library (BCL): The Base Class Library (BCL) consists of a small subset of the entire class library and is the core set of classes that serve as the essential API of the Common Language Runtime.[10] The classes in mscorlib.dll and a few of the classes in System.dll and System.core.dll are considered to be a division of the BCL. The BCL classes are accessible in both .NET Framework as well as its substitute implementations counting .NET Compact Framework, Microsoft Silverlight and Mono.

Framework Class Library (FCL): The Framework Class Library (FCL) is a superset of the BCL classes and indicates the whole class library that ships with .NET Framework. It includes an extended set of libraries, including WinForms, ADO.NET, ASP.NET, Language Integrated Query, Windows Presentation Foundation, Windows Communication Foundation among others. The FCL is much superior in scope than standard libraries for languages likeC++, and comparable in capacity to the standard libraries of Java.

The Base Class Library (BCL) is a regular library available to all languages with the .NET Framework. .NET comprise the BCL in order to summarize a large number of ordinary functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, making easy the programmer’s job. It is much better in scope than standard libraries for the majority other languages, together with C++, and would be similar in scope to the standard libraries of Java. The BCL is sometimes wrongly referred to as the Framework Class Library (FCL), which is a superset as well as the Microsoft.* namespaces.

The BCL is modernized with every version of the .NET Framework

 Namespaces

Some of the namespaces might or might not be officially considered part of the BCL by Microsoft, but all are incorporated as part of the libraries that are equipped with Microsoft’s implementation of the .NET Framework.

Standardized namespaces

These are the namespaces that are uniform as of the ECMA 335 and ISO/IEC 23271:2006 standards.

System

This namespace comprises the central requirements for programming. It includes base types like String, DateTime, Boolean, and so forth, sustenance for environments such as the console, math functions, and base classes for attributes, exceptions, and arrays.

System Collections

It re-defines numerous common containers or collections used in programming, like lists, queues, stacks, hashtables, and dictionaries. It comprises a prop up for generics.

System Diagnostics

It offers you the skill to diagnose your application. It consists of event logging, presentation counters, tracing, and interaction with system processes.

The above article is important for dot net development.

About the Author

Tyler Moon is an expert in article writing and internet marketing. She regularly contributes articles on various topics like security services, birth announcements etc.

How do you draw a rectangle for an applet?

http://java.sun.com/javase/6/docs/api/java/awt/Graphics.html#drawRect(int, int, int, int)

I want to use drawRect but I don’t understand what the website is saying exactly. Can someone provide a sample of the code? Thanks.

You would want to override your applet’s paint(Graphics g) method (or if it’s a JApplet, paintComponent(Graphics g) ) to draw the rectangle using the Graphics’ drawRect() method, passing in the coordinates of the upper left corner of the rectangle and the desired width and height of the rectangle. These coordinates and dimensions are given in pixels. So if you want to draw a red rectangle 20 pixels from the right edge of the applet and 30 pixels from the top, 60 pixels wide and 12 pixels high, your overridden paint() method would look like:

public void paint(Graphics g)
{
g.setColor(Color.red);
g.drawRect(20, 30, 60, 12);
}

Image Processing in Java


iHome iP43LVC Dual Alarm Clock Radio for your iPod/iPhone with Pillow Shaker (Blue)


iHome iP43LVC Dual Alarm Clock Radio for your iPod/iPhone with Pillow Shaker (Blue)


$75.95


iHome IP43 Desktop Clock Radio – Apple Dock Interface IP43LV Clocks…

Dual Alrm Clck Rad Iphone/ipod Purple Charge Play Or Wake


Dual Alrm Clck Rad Iphone/ipod Purple Charge Play Or Wake


$91.77


iHome IP43UV Desktop Clock Radio IP43UV Clocks…

Alex Super Baking set - 18 Piece Metal and Plastic Set


Alex Super Baking set – 18 Piece Metal and Plastic Set


$16.99


Measure, mix, prep, and bake some imaginary treats| This 18-piece set features a loaf pan, bear pan, heart pan, mixing bowl, rolling pin, whisk, measuring spoons and cup, pastry wheel, 2 star cookie cutters, 2 heart cookie cutter, and an oven mitt. Bon Appetit|…

Passion of the Christ: Songs (Original Songs Inspired by the Film)


Passion of the Christ: Songs (Original Songs Inspired by the Film)


$7.00



Egyptian Hieroglyphs Made Easy


Egyptian Hieroglyphs Made Easy


$26.50


Learning and understanding of the ancient Egyptian hieroglyphic language. The hieroglyphic script was the longest lived and earliest form of the Egyptian language. Its use was limited primarily to religious and monumental inscriptions, whereas a more cursive script called hieratic was preferred for administrative and epistolary purposes. Hieroglyphic Egyptian employs pictures of objects, each with…

Promised Land [CD-ROM]


Promised Land [CD-ROM]



Queensryche’s follow-up to the double-platinum Empire is something of an acquired taste, but it’s well worth the effort. There’s considerable variety here; the heavy progressive-rock of “I Am I” and the ballad “Bridge” were hit singles, but there’s also the funk-inflected “Disconnected”, the edgy, spooky “Lady Jane”, and the piano-and-vocals “Someone Else?”. The title track is probably the stronge…


Yoga Girl - Vinyl Wall Decals Murals Stickers Art Graphic - 25H x 35W - by üBer Decals


Yoga Girl – Vinyl Wall Decals Murals Stickers Art Graphic – 25H x 35W – by üBer Decals



Better than wallpaper, wall stickers are a perfect way to decorate your room and express yourself. They are a fun, easy and removable decor solution. These stickers are pre-cut and will only take you several minutes to apply on any surface – walls, doors, windows, and more. Each of our designs come with easy instructions to follow. This is an original design from uBer Decals. All other sellers are…


2.5mm Hands-Free EarBud Headset + Car Kit Vehicle Plug in Adapter + Home Travel Wall Charger for ATT Nokia Mural Grouper 6750 Cell Phone


2.5mm Hands-Free EarBud Headset + Car Kit Vehicle Plug in Adapter + Home Travel Wall Charger for ATT Nokia Mural Grouper 6750 Cell Phone


$5.99


Brand new premium quality MP3 Earbud and hands-free headset for your cell / smart / PDA phone. Acoustically tuned speaker for improved sound clarity even in noisy environments. Soft covered ergonomic earpiece for comfort even over extended periods. **Phone & Ear bud features are limited to the phone’s capability and the service provider’s default settings. Please consult with your phone’s user man…

Modern Woman 6 - Vinyl Wall Decals Murals Stickers Art Graphic - 39H x29W - by üBer Decals


Modern Woman 6 – Vinyl Wall Decals Murals Stickers Art Graphic – 39H x29W – by üBer Decals



Better than wallpaper, wall stickers are a perfect way to decorate your room and express yourself. They are a fun, easy and removable decor solution. These stickers are pre-cut and will only take you several minutes to apply on any surface – walls, doors, windows, and more. Each of our designs come with easy instructions to follow. This is an original design from uBer Decals. All other sellers are…


Shawn Interrupted


Shawn Interrupted


$1.99



Defending Polygamy


Defending Polygamy


$1.99



America's Funniest Home Videos: Sports Spectacular


America’s Funniest Home Videos: Sports Spectacular


$4.22


AMERICA’S FUNNIEST HOME VIDEOS:SPORT – DVD Movie…

Tiger Balm Analgesic Tiger Muscle Rub


Tiger Balm Analgesic Tiger Muscle Rub




Gecko Nasal Pad - Large, 4.12 Long


Gecko Nasal Pad – Large, 4.12 Long


$24.85


The Gecko Nasal Pad (formerly the Sleep Comfort Care Pad by Sequal) is intended for patients with Obstructive Sleep Apnea (OSA) who experience pain and discomfort on or around the bridge of their nose associated with using nasal or full face masks. The pad acts as a cushion between the patient’s face and mask, and is simply placed across the bridge of the nose under the mask. The protective polyme…

Ableware 769450000 Raptor Reacher


Ableware 769450000 Raptor Reacher


$13.99


Raptor Reacher Maximum value at a moderate price The Raptor Reacher is a low cost, durable, lightweight, all plastic reacher with a contemporary design unlike other reachers. The jaw opens a full 2 1/2″ (6.3 cm) and provides a tight grip on even the smallest items such as coins or bulky items like newspapers, clothing and cans. A hook-like extension on the front can be used as a dressing aid. The …

Omaha Steaks Prime Rib Roasts


Omaha Steaks Prime Rib Roasts



Prime Rib Roasts…


Betty Lous Organic Harmony Hippy Happy Apple Bar Case Pack 24 - 683021


Betty Lous Organic Harmony Hippy Happy Apple Bar Case Pack 24 – 683021


$116.33


1.75 oz bar. Vegan. USDA organic. Ingredients: organic apple cinnamon granola [organic oats, organic maple syrup, organic oat flour, organic crisped rice (organic brown rice, malt syrup - GF, sea salt), organic brown rice syrup, organic walnuts, organic sunflower seeds, organic expeller pressed high oleic sunflower oil, organic unsulfured dried apples, organic cinnamon, organic vanilla, sea salt],…

KIKE CALVO photo illustrations FREAKLANCES Collection - Freaklance Fausto with bike graphic tablet and keyword - Coffee Gift Baskets - Coffee Gift Basket


KIKE CALVO photo illustrations FREAKLANCES Collection – Freaklance Fausto with bike graphic tablet and keyword – Coffee Gift Baskets – Coffee Gift Basket


$44.99


Freaklance Fausto with bike graphic tablet and keyword Coffee Gift Basket is measuring 9x9x4. Contains 15oz mug, BONUS free set of 4 coasters, biscotti and 5 blends of gourmet coffee. French Vanilla, Kenya AA, Decaf Colombian Supremo, Chocolate and Italian Roast Espresso elegantly presented in our signature black planet coffee gift box. A very nice and thoughtful gift for any occasion….

Kuzy® - AQUA BLUE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


Kuzy® – AQUA BLUE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


$1.00


Dress up your MacBook Pro in fashionable color, silicone protection now.
*** Will Not fit MacBook Air 11″ ***…

Kuzy - PURPLE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


Kuzy – PURPLE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


$2.00


Dress up your MacBook Pro in fashionable color, silicone protection now.
*** Will Not fit MacBook Air 11″ ***…

Kuzy - Circles Blue/White Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


Kuzy – Circles Blue/White Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


$2.00


Dress up your MacBook Pro in fashionable color, silicone protection now.
*** Will Not fit MacBook Air 11″ ***…

Lilyette  Women's Minimizer Bra #427


Lilyette Women’s Minimizer Bra #427


$32.00


Experience the elegance of our Lilyette® Simplex Minimizer Bra with Embroidery!Minimizes your bust    Elegant embroidery adds femininityNo wire poke throughFlexible fitFabric ContentCups: 69% Nylon, 31% Lycra® ElastaneEmbroidery: 57% Rayon, 31% Nylon, 12% PolyesterBack: 92% Nylon, 8% Lycra® ElastaneImported…

Lilyette Women's Plunge Into Comfort Keyhole Minimizer


Lilyette Women’s Plunge Into Comfort Keyhole Minimizer


$32.00


AS SEEN ON THE TODAY SHOWOur Lilyette® Keyhole Minimizer Bra’s sexy plunge design provides a V-shape pitch that enhances cleavage while providing a sexy and secure fit on the body!      Minimizes size – not shapeEnhances CleavageSexy plunge stylingShimmering fabric appearanceGentle and comfortable on the bodyPrevenets wire poke through Fabric ContentBody: 78% Polyamide, 22% ElastaneCup Lini…

Flexees Women's Easy Up Easy Down Thigh Slimmer


Flexees Women’s Easy Up Easy Down Thigh Slimmer


$38.00


Say goodbye to the dreaded tug of war with your shapewear!  Flexees® Easy-Up® Thigh Slimmer offers you firm control shapewear that’s easy to put on and take off!      Easy on and easy off!        Clothes easily glide on top of garmentsFirm controlComfortable and soft to the touchFirm and shaping without rolling downHelps prevent static clingFabric ContentBody: 81% Nylon, 19% Elasta…

Alex Color A Flower Bag


Alex Color A Flower Bag


$20.86


Dazzling flowers| This fashionable bag measures 14?W x 11?H x 4?D – big enough for school books and binders. Includes 6 permanent markers in a cool pouch that can be colored, too|…

Alex Toys Draw like A Pro


Alex Toys Draw like A Pro


$34.00


A fun and easy way to draw…just turn down the lights, switch on the projector, insert a preprinted slide and trace away| Comes with 124 slides, 6 markers, 10 sheets of paper, and a flip book….

Green Toys Sand Play Set


Green Toys Sand Play Set


$11.00


Kids will ‘dig’ building castles and hunting for buried treasure with the environmentally friendly Sand Play Set from Green ToysTM. Made of recycled plastic, this classic 4-piece collection of tools consists of a bucket, sand castle mold, shovel and rake. Made in the U.S.A from recycled plastic milk containers, which helps save energy, reduces landfill waste, and lowers greenhouse gas emissions, a…

VANELi Women's Rhea Bow Pump


VANELi Women’s Rhea Bow Pump


$74.95


• Special effects enliven this fabric dress style from Van Eli. It’s feminine from every angle with matching patent leather bow, sculpted illusion heel, and center seam detailing • Fabric upper • Leather lining • Leather sole • Padded insole • 1-1/2″ sculpted illusion heel • Vamp v-notch allows a nice fit …

Toe Warmers Women's Monique Ankle Boot


Toe Warmers Women’s Monique Ankle Boot



• Casual fashion with cold-stopping style • Velvety microdry fabric upper • Warm Borg pile lining • Fully gusseted front zipper • Heat reflecting insole • Slip-resistant rubber-like sole • Sensible 1″ heel • Guaranteed waterproof…


Stacy Adams Boys' Richie 43297 Dress Shoes


Stacy Adams Boys’ Richie 43297 Dress Shoes


$44.99


• Keep your young man looking sharp in this sleek oxford • Shiny manmade upper with tonal fabric accent • Lightly cushioned footbed • Flexible rubber sole • Toddler sizes available in whole sizes only, half sizes order next size up …


Post a Comment

Your email is never shared. Required fields are marked *

*
*