Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 May, 2013, 19:29:43 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: [nRGBlib] W.I.P - Colorful librairy for Ndless 3.1 -  (Read 5160 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #15 on: 18 January, 2012, 01:35:19 »
0

I like the progress on this, great work! Smiley
Logged


totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #16 on: 19 January, 2012, 23:48:27 »
+1

Ndless 3 is out !
Here is the link to download nRGBlib Smiley :
https://bitbucket.org/totorigolo/nrgblib/downloads

This link will be always up to date, because it's mine.
Logged

nRGBlib - A portable graphic library for Nspire !
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: Today at 10:41:34
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765

Total Post Ratings: +151

View Profile
« Reply #17 on: 19 January, 2012, 23:49:55 »
0

Thanks totorigolo Smiley Also make sure to put it in your first post.
Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
willrandship
Omnimagus of the Multi-Base.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:45:51
Date Registered: 11 April, 2010, 03:08:32
Location: Between Venus and Mars
Posts: 2638


Total Post Ratings: +66

View Profile
« Reply #18 on: 20 January, 2012, 06:36:49 »
0

So, does "character drawing" mean sprite support or text?

Sprite support would be really nice. At arbitrary sizes, ideally.

Also, have you considered image importing?
Logged

Spyro543
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 19:01:48
Date Registered: 15 April, 2011, 01:42:09
Location: Ohio
Posts: 990


Total Post Ratings: +59

View Profile WWW
« Reply #19 on: 20 January, 2012, 15:51:42 »
0

Is there a pixel test command? That would be highly useful.
Logged

tangrs
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 11:25:08
Date Registered: 13 July, 2011, 04:32:25
Location: Australia
Posts: 188

Total Post Ratings: +84

View Profile WWW
« Reply #20 on: 07 February, 2012, 12:10:04 »
0

Looks very interesting!

I might use it sometime when I have the time Big smile
Logged
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #21 on: 23 February, 2012, 00:23:30 »
0

* epic7 downloads
* epic7 is clueless about ndless makefile stuff

In your example makefile,
What does "the directory for the tns file" mean
Also, where it says "one .o file for each .c file" am I supposed to replace that with something?
« Last Edit: 23 February, 2012, 00:26:54 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
lkj
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 00:06:14
Date Registered: 07 September, 2011, 20:05:25
Posts: 348

Total Post Ratings: +40

View Profile
« Reply #22 on: 23 February, 2012, 00:54:06 »
0

the "directory for the tns file" means the name and directory were the compiled .tns will be. For example this line could be

1
DISTDIR = Example.tns

In the OBJS line you have to write the names of the .c files you want to compile, but with .o instead of .c at the end of each name.
Logged

My Nspire Ndless C projects:
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #23 on: 24 February, 2012, 02:20:24 »
0

Where am I supposed to put all that makefile code?
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
Jonius7
aka jhgenius
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 06:58:52
Date Registered: 03 September, 2010, 02:50:11
Location: Gold Coast, Australia
Posts: 1743


Total Post Ratings: +50

View Profile WWW
« Reply #24 on: 24 February, 2012, 05:36:23 »
0

This is great. Hopefully this'll allow to extend the capabilities of the nspire significantly.
Logged



Userbars.com is down?
+9001
Intermediate TI-nspire Basic Programmer
Programmed some CASIO Basic in the past
DJ_O Music Discographist Wink
Userbars for these coming... in the process

My Released and Announced Projects (Updated 2013/01/29)
TI-nspire BASIC
TI-nspire Hold 'em | Health Bar | Scissors Paper Rock | Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled)

TI-nspire Lua
Numstrat | TI-nspire Hold 'em Lua | Terraria (coming soon)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Spoiler for Other Stuff:
Spoiler for Want your own HonestDownloads userbar?:
Hello! Do you want to show your affection for my website, HonestDownloads? Then here is a userbar I specially created earlier just for HonestDownloads users!

To add it to your signature just copy and paste the code below into your sig and you'll become an instant supporter of my website!

1
[URL=http://www.jhgenius01.webs.com][IMG]http://s1.bild.me/bilder/060112/3684792HDuserbaruser.png[/IMG][/URL]
Spoiler for My TI-nspire Basic Programs (Updated 2012/04/15):
***List of Programs in the TI-nspire Stadium***
Group Release 2012/04/07 on omnimaga.org

Games
   Noteable Release    ticalc.org Release Development/Not Publicly Released
2010/05/08 TI-nspire Hold 'em
   2012/04/07 v1.1.2   2012/04/10 v1.1.3  2012/04/14 v1.2.1
2010/08/03 Cosmic Legions
   2012/04/07 v0.2.2.2 (1st Release)
2010/08/12 Battle of 16s
   2012/04/07 v0.2.7
2010/09/10 Health Bar
   2012/04/07 v1.2     2012/04/02 v1.0   
2010/12/04 sTIck RPG
   2012/04/07 v0.1.5.2
2011/01/09 Monopoly
   2012/04/07 v0.16    (1st Release)
2012/04/09 Scissors Paper Rock
   2012/04/14 v0.8.1

Miscellaneous
2010/11/07 中文 (Chinese) Demonstration
   2012/04/07 v1.3     (1st Release)

Potential/Minor Programs
2010/09/26 Shanghai Metro
   2012/04/07 v0.2     (1st Release)
2010/12/22 TI-nspire Programming Tutorials
   2012/04/07 v0.1     (1st Release)
2010/12/28 Casino Games
   Was not released.
2011/04/22 Interlink
   2012/04/07 v0.0.4   (1st Release)
2012/03/22 Hierarchy
   2012/04/07 v0.01

Demo Programs (some may become Potential Programs)
2010/06/23 Monopoly (Board)
   2012/04/07 Prototype
2010/07/14 Strategy Battle
   2012/04/07 v0.12
2010/10/05 JRPG
   2012/04/07 v0.2
2010/11/02 PlotGrid
   2012/04/07 v0.2
2010/11/24 civilizaTIon™
   2012/04/07 v0.11

Purely Informational
2011/01/05 TI-nspire Stadium Changelog
   2012/04/07 v2
   Created to list significant releases of my programs. A page similar to this List of Programs in the TI-nspire Stadium was included in the documentation of most of my programs until sometime in Late 2011/Early 2012.

All games and programs coded in TI-nspire Basic.
© 2010-2012 Jason Ho.
Last Updated 14 April 2012

jhgenius01.webs.com
Will be moving! Stay tuned for updates.
Spoiler for Progress of Doodle God Axe:
2011/12/21 4% - Progress Suspended, ideas of graphical sprites still uncertain
Spoiler for Other Other You Know What Other Stuff I'm Talking About Stuff Stuff (Updated 2012/01/17):
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #25 on: 24 February, 2012, 06:01:16 »
0

the "directory for the tns file" means the name and directory were the compiled .tns will be. For example this line could be

1
DISTDIR = Example.tns

In the OBJS line you have to write the names of the .c files you want to compile, but with .o instead of .c at the end of each name.
So I could put
DISTDIR = C:/ndless/test1/testprogram.tns
?
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #26 on: 25 February, 2012, 03:07:59 »
0

Is there any guide or something to tell how to use the functions?''

And should this makefile work?
I get an error that i think is in the OBJS line.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
GCC = nspire-gcc
LD = nspire-ld
GCCFLAGS = -Os -nostdlib -I"c:/nRGBlib/sdk/include/"
LDFLAGS = -L "c:/nRGBlib/sdk/lib/"
OBJCOPY := "$(shell (which arm-elf-objcopy arm-none-eabi-objcopy arm-linux-gnueabi-objcopy | head -1) 2>/dev/null)"
ifeq (${OBJCOPY},"")
OBJCOPY := arm-none-eabi-objcopy
endif
OBJS = main.o bar.o -> hello.o
DISTDIR = .
vpath %.tns $(DISTDIR)

all: hello.tns

%.o: %.c
$(GCC) $(GCCFLAGS) -c $<

%.o: %.S
$(GCC) $(GCCFLAGS) -c $<

hello.tns: $(OBJS)
$(LD) $(LDFLAGS) $^ -o $(@:.tns=.elf) -lRGB
@mkdir -p $(DISTDIR)
$(OBJCOPY) -O binary $(@:.tns=.elf) $(DISTDIR)/$@

clean:
rm -f *.o *.elf
rm -f $(DISTDIR)/hello.tns
EDIT: I changed it to just OBJS = hello.o and it made the tns
« Last Edit: 25 February, 2012, 05:02:15 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #27 on: 27 February, 2012, 06:18:17 »
0

In nRGBlib, how do you make sprites? Or has that not been implemented yet?

Also, as ive posted multiple times Tongue, rand() doesnt work because RGBlib has a rand function that conflicts with yagarto's one, so how do I get it to work? The snake game uses rand() and it works fine.... I can't really spot any differences between snake's code and mine that could have made snake's work, other than that it included nMATHS, but that didn't change anything for me when I included it

Edit: Ouch, triple post Big frown
« Last Edit: 27 February, 2012, 06:22:25 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 18:20:31
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #28 on: 27 February, 2012, 09:14:46 »
0

Just take a look at the example nRGBLib program's source, it's quite clear.
It also shows how to draw sprites IIRC.
Logged

totorigolo
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 02:07:00
Date Registered: 19 December, 2011, 00:19:11
Location: Bouches-du-Rhône
Posts: 24

Topic starter
Total Post Ratings: +9

View Profile
« Reply #29 on: 03 March, 2012, 16:27:53 »
0

Above all, please excuse me epic7, Spyro543 and willrandship for not responding, I didn't receive any mail and this topic has more succes than the french one...

So, does "character drawing" mean sprite support or text?

Sprite support would be really nice. At arbitrary sizes, ideally.

Also, have you considered image importing?

"character drawing" means text. I was wondering about sprite support and images, but i had actually not work on nRGBlib since Ndless 3 out.

Is there a pixel test command? That would be highly useful.

I added one, but i had problems, so i deleted it for the public release. It will be added soon  Smiley

In nRGBlib, how do you make sprites? Or has that not been implemented yet?

Also, as ive posted multiple times Tongue, rand() doesnt work because RGBlib has a rand function that conflicts with yagarto's one, so how do I get it to work? The snake game uses rand() and it works fine.... I can't really spot any differences between snake's code and mine that could have made snake's work, other than that it included nMATHS, but that didn't change anything for me when I included it

Edit: Ouch, triple post Big frown

Did you manage to use rand() and to compile ? I will answer faster this time Wink

Logged

nRGBlib - A portable graphic library for Nspire !
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.301 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.